Activity Services

An ActivityService is a booked instance of an activity product.

XML Schema:

GET: get-activity-service

POST: create-activity-service

PATCH: update-activity-service

Fields

Name Type Description
id read-only String  
href read-only Field  
name read-only String The name of this service.
status String

The current status of the service:

  • Option: The service is being held on option until the option_expiry_date. No deposit or payment is required to hold an option. Options cannot be held on departures with flags NO_OPTIONS. An Option service can be Expired or Confirmed.
  • On Request: The service has been requested by the client, but the request has not been sent to the local office. All departures with availability status REQUEST_SPACE can not be put on Option, but must be requested. Full payment is required. An On Request service can be Expired with no cancellation fees applied.
  • Request Confirmation: The service has been requested by the client, and the request has been sent by G Adventures to the local office. A Request Confirmation service can be Cancelled with cancellation fees applied.
  • Confirmed: The service is confirmed. Deposit is always required to confirm, and full payment will be required for a departure where FULL_PAYMENT_REQUIRED_TO_BOOK is present in the flags field. A Confirmed service can be Cancelled with cancellation fees applied.
  • Waitlisted: The service is in a waitlist queue. A cancellation on the product will cause the service to automatically be moved to Option. Only product with availability status WAIT_LIST can be Waitlisted. A Waitlisted service can be Cancelled with no cancellation fees applied.
  • Expired: The service is expired. An Option or On Request service is Expired at midnight EST when it reaches its option_expiry_date. A Waitlisted service can be Expired at any time, but will automatically be Expired when a departure reaches availability status REQUEST_SPACE. No cancellation fees will be applied.
  • Request Cancellation: The service has been requested to be Cancelled. Cancellation fees will be applied when it is Cancelld by G Adventures staff (if applicable).
  • Cancelled: The service is cancelled. A Request Confirmation or Confirmed service can be cancelled with cancellation fees applied.

Active service status transitions:

  • Option –> Confirmed/Expired
  • On Request –> Request Confirmation/Expired
  • Request Confirmation –> Request Cancellation
  • Confirmed –> Request Cancellation
  • Waitlisted –> Expired
status_transitions read-only List A list of status values to which this service can transition.
type read-only String The type of this resource.
sub_type read-only String A brief description of the service type.
start_date read-only Date The start date of the service.
finish_date read-only Date The finish date of the service.
customers Field  
  • id read-only
String  
  • href read-only
Field  
  • name
Nested Object  
    • legal_first_name required
String Legal first name as it appears on a passport.
    • legal_middle_name
String Legal middle name as it appears on a passport.
    • legal_last_name required
String Legal last name as it appears on a passport.
    • common_name
String The name this person likes to be called if different from their legal name.
    • title required
String The title. Valid values are: Mr, Mrs, Ms, and Miss
date_created read-only Datetime The date this service had its service status set to Confirmed, in the standard dates-time.
date_confirmed read-only Datetime The date this service had its service status set to Confirmed, in the standard dates-time.
date_cancelled read-only Datetime The date this service had its service status set to Cancelled, in the standard dates-time.
option_expiry_date read-only Datetime The date/time at which an Option service status will automatically be set to Expired, in the standard dates-time.
purchase_price read-only Decimal The currency-specific purchase price this service was Confirmed at, in the standard currencies. The price is not locked until the service has its service status set to Confirmed (i.e. the price could change when the service status is on Option).
commission read-only Decimal The currency-specific commission amount that the booking agent will receive for this service, in the standard currencies.
applied_promotion Nested Object  
  • id read-only
String  
  • href read-only
Field  
  • name
String The name of the promotion used.
  • promotion_code
String A unique code for this promotion.
  • discount_amount
Decimal The currency-specific amount that has been discounted from the purchase_price. Add the discount_amount and purchase_price to see the original non-discounted price.
  • commission_rate
Integer The commission rate for this promotion.
  • terms_and_conditions
String The promotion applied to this service.
flags read-only List

A list of codes that, when present, require special considerations for a booked service.

The list of departure service flags related to the current status af a request to hike the Inca Trail, or the option booked for services on these special departures:

  • ON_INCA_TRAIL: Inca Trail permits have been obtained for all travellers on this service.
  • REQUESTING_INCA_TRAIL: A request to hike the Inca Trail has been submitted. The permits have not yet been obtained for travellers on this service.
  • ON_LARES_TREK: All travellers on this service will be hiking the Lares Trek as the Inca Trail is not available.
  • CUZCO_STAY: All travellers on this service will stay in Cuzco, as either they have chosen this option or the Inca Trail permits are not available for this departure.
  • INCA_TRAIL_UNKNOWN: A request to the local office has been made to confirm availability and additional local intricacies. This is an intermediary state which can occur before REQUESTING_INCA_TRAIL and any of the other states.
booking read-only Nested Object  
documents read-only Field  
  • id read-only
String  
  • href read-only
Field  
  • date_created required
Datetime The time when the resource was created, in the standard dates-time.
  • type read-only
String The document type, currently: INVOICE, ATOL_CERTIFICATE, VOUCHER.
  • audience read-only
String The intended audience of this document. Either AGENT or CUSTOMER.
  • booking read-only
Nested Object The related booking resource.
  • mime_type read-only
String The Internet media type.
declined_reason read-only Nested Object The related declined reason resource.
product read-only Nested Object A reference to the activity itself
incomplete_requirements Field A list of requirements that are not yet met on this service. A list of requirements can be found here: Booking Requirements
  • type required
String The requirement category. ‘CHECKIN’ means the requirement must be met before a voucher document resource can be generated for a booked service on this product. ‘CONFIRMATION’ means the requirement must be met in order to confirm a booked service.
  • name required
String The name of this requirement.
  • code required
String A unique code for this requirement. This code will never change and can be used as an identifier.
  • requirement_set required
String A unique code for the set which contains this requirements. This code will never change and can be used as an identifier.
  • message required
String A message describing that data needed to fulfill this requirement.
  • flags required
List

A list of codes that provide additional information related to this requirement:

  • INTERNAL: This requirement must be fulfilled internally by our staff. When this flag is absent, the requirement can be fulfilled by updating the appropriate value(s) in either the customer or service resource.
  • details required
Field A list of informational details for this requirement. This is information that should be given to the customer when booking a service on this product.
    • summary required
String A brief description of this detail.
    • description required
String A full description of this detail.
    • detail_type required
Nested Object A type of this detail.
      • code required
String A unique code for this detail type. Possible values are: ‘CONFIRMATION_ONLY’, ‘ANY’. CONFIRMATION_ONLY means this detail is relevant for confirmations. ANY means this detail is relevant for any type of communication.
  • customer required
Nested Object  
    • id read-only
String  
    • href read-only
Field  
    • name
Nested Object  
      • legal_first_name required
String Legal first name as it appears on a passport.
      • legal_middle_name
String Legal middle name as it appears on a passport.
      • legal_last_name required
String Legal last name as it appears on a passport.
      • common_name
String The name this person likes to be called if different from their legal name.
      • title required
String The title. Valid values are: Mr, Mrs, Ms, and Miss
arrival_flight_details Field A list of arrival flight data objects for this service, per customer.
  • arrival_flight_number required
String Arrival flight airline code and number
  • arrival_flight_date_time required
String Arrival flight date and time, in the local time zone
  • customer required
Nested Object  
    • id read-only
String  
    • href read-only
Field  
    • name
Nested Object  
      • legal_first_name required
String Legal first name as it appears on a passport.
      • legal_middle_name
String Legal middle name as it appears on a passport.
      • legal_last_name required
String Legal last name as it appears on a passport.
      • common_name
String The name this person likes to be called if different from their legal name.
      • title required
String The title. Valid values are: Mr, Mrs, Ms, and Miss
associated_services List  

Get an Activity Service

GET /activity_services/(string: service_id)/

Create an Activity Service

POST /activity_services/

Example request:

POST /activity_services/ HTTP/1.1
Host: rest.gadventures.com
Accept: application/json
Content-Type:application/json
{
    "customers": [
        {
            "id": "1322842"
        }
    ],
    "booking": {
        "id": "628099"
    },
    "product": {
        "id": "5804"
    }
}

Example response:

HTTP/1.1 201 CREATED
Content-Type: application/json
{
    "id": "1161903",
    "href": "/activity_services/1161903",
    "name": "Valley of the Kings Hot Air Balloon Ride",
    "status": "Option",
    "type": "activity_services",
    "sub_type": "Product",
    "start_date": "2013-11-25",
    "finish_date": "2013-11-25",
    "customers": [
        {
            "id": "1322842",
            "href": "/customers/1322842",
            "name": {
                  "legal_first_name": "Unex",
                  "legal_last_name": "Girdlers",
                  "legal_middle_name": null,
                  "common_name": null,
                  "title": "Mr"
            },
        }
    ],
    "date_created": "2013-08-06T17:45:20Z",
    "date_confirmed": null,
    "date_cancelled": null,
    "option_expiry_date": "2013-08-10T17:41:11Z",
    "purchase_price": "130.00",
    "commission": "0.00",
    "applied_promotion": null,
    "flags": [],
    "booking": {
        "id": "628099",
        "href": "/bookings/628099"
    },
    "documents": null,
    "product": {
        "id": "5804",
        "href": "/activities/5804",
        "name": "Valley of the Kings Hot Air Balloon Ride"
    }
}

Update an Activity Service

PATCH /activity_services/(string: service_id)/

Example request:


PATCH /activity_services/1161864/ HTTP/1.1

Host: rest.gadventures.com Accept: application/json Content-Type: application/json {

“status”: “Cancelled”

}

A successful response returns the same data as a GET on this resource.