Itinerary

This API allows to create, view, update, and delete trip.

Itinerary Properties #

AttributeTypeDescription
trip_idintegerUnique identifier for the object. ( Read-Only )
trip_titlestringTitle of the trip.
trip_statusstringStatus of the trip. Only works if the status is published.
trip_authorintegerID of the user.
trip_datedateCreated date of the trip.
trip_date_gmtdateCreated date of trip in GTM.
trip_excerptstringTrip short description.
trip_metasarrayTrip meta data.

Trip Metas

AttributeTypeDescription
trip_overviewstringTrip description.
trip_outlinestringTrip outline.
trip_enable_fixed_departurestringAn array of media’s ID.
trip_durationintTotal duration of the trip.
trip_duration_nightintTotal night of the trip.
trip_includestringTrip includes.
trip_excludestringTrip excludes.
trip_galleryarrayAn array of media IDs.
trip_featured_imageintID of media.
trip_enable_location_lan_latstringSet ‘yes’ to enable longitude and latitude.
trip_locationstringName of the location.
trip_latstringLatitude of the location.
trip_lngstringLongitude of the location.
trip_itineraryarrayTrip itinerary.
trip_faqsarrayTrip faqs.
trip_enable_global_tabsstringSet ‘yes’ to enable the global tab.
trip_tab_overview_labelstringTrip overview label.
trip_tab_overview_enablebooleanSet ‘yes’ to enable trip overview.
trip_tab_trip_outline_labelstringTrip outline label.
trip_tab_trip_outline_enablebooleanSet ‘yes’ to enable trip outline.
trip_tab_trip_includes_labelstringTrip includes label.
trip_tab_trip_includes_enablebooleanSet ‘yes’ to enable the trip include.
trip_tab_trip_excludes_labelstringTrip exclude label.
trip_tab_trip_excludes_enablebooleanSet ‘yes’ to enable the trip excludes.
trip_tab_gallery_labelstringTrip gallery label.
trip_tab_gallery_enablebooleanSet ‘yes’ to enable the trip gallery.
trip_tab_reviews_labelstringTrip review label.
trip_tab_reviews_enablebooleanSet ‘yes’ to enable the trip review.
trip_tab_booking_labelstringTrip booking label.
trip_tab_booking_enablebooleanSet ‘yes’ to enable the trip booking.
trip_tab_faq_labelstringTrip faq label.
trip_tab_faq_enablebooleanSet ‘yes’ to enable the trip faq.
trip_tab_downloads_labelstringTrip download label.
trip_tab_downloads_enablebooleanset ‘yes’ to enable the trip download.
trip_tab_guide_labelstringTrip guide label.
trip_tab_guide_enablebooleanSet ‘yes’ to enable the trip guide.
trip_checkout_page_info_labelstringCheckout page info label.
trip_checkout_page_infostringCheckout page info.
enable_trip_inventorystringset ‘yes’ to enable trip inventory.
trip_inventory_sold_out_actionstringSet ‘allow_trip_enquiry’ to display the inventory button otherwise set ‘show_sold_out_msg_only’ to show the sold-out message.
trip_inventory_sizeintegerInventory size.
trip_inventory_sold_out_messagestringInventory sold out message.
inventory_counts_paid_onlystringSet ‘yes’ to allow count inventory for paid bookings.
trip_downloadsarrayDownload array.
trip_enable_global_enquirystringSet ‘yes’ to enable the global trip enquiry.
trip_enable_enquirystringSet ‘yes’ to enable the trip enquiry.
trip_partial_payoutstringSet ‘yes’ to enable global partial payout.
minimum_partial_payout_percentarrayDivision of partial payout. Total must be 100.
trip_tax_activityarrayID’s of trip activity.
trip_tax_typearrayID’s of trip type.
trip_tax_locationarrayID’s of trip location.
trip_pricingarrayTrip pricing array.
trip_departurearrayTrip departure array.

Trip Itinerary

AttributeTypeDescription
labelstringItinerary label.
titlestringItinerary title.
datedateItinerary date.
timetimeItinerary time.
imageintegerItinerary image.
descstringItinerary description.

Trip FAQS

AttributeTypeDescription
questionstringFAQ question.
answerstringFAQ answer.

Trip Downloads

AttributeTypeDescription
downloadsintegerAttached download ID for direct download.
email_downloadsarrayAttached download ID’s for email.

Pricing Array

AttributeTypeDescription
trip_pricing_namestringTrip price name.
trip_min_paxintegerMinimum pax/person for trip.
trip_max_paxintegerMaximum pax/person for trip.
trip_pricing_category_idintegerID of price category.
trip_price_perstringSet person or group.
trip_regular_pricefloatTrip regular price.
trip_is_salestringSet ‘yes’ to enable sale price.
trip_sale_pricefloatTrip sale price.
trip_default_paxintegerDefault pax for trip.
trip_price_keyintegerUnique pricing key. Only used for departure date

Trip Departure

AttributeTypeDescription
labelstringTrip departure label.
start_dateintegerDeparture starting date.
end_dateintegerDeparture ending date.
trip_price_keyintegerPricing key to match pricing category.

Add Itinerary #

This API helps to add a new trip.

POST

/wp-json/wptravel/v1/add-itinerary

curl --location 'https://example.com/wp-json/wptravel/v1/add-itinerary' \
--header 'Authorization: Basic <application-key>' \
--form 'trip_title="test trip"' \
--form 'trip_excerpt="trip short description sweet trip"' \
--form 'trip_overview="trip description full descripton "' \
--form 'trip_outline="this is outline"' \
--form 'trip_include="this include trip"' \
--form 'trip_exclude="this exclude trip"' \
--form 'trip_duration="8"' \
--form 'trip_duration_night="7"' \
--form 'trip_gallery[]="49"' \
--form 'trip_gallery[]="48"' \
--form 'trip_featured_image="48"' \
--form 'trip_enable_location_lan_lat="yes"' \
--form 'trip_location="kathmandu"' \
--form 'trip_lat="27.700001"' \
--form 'trip_lng="85.333336"' \
--form 'trip_itinerary[1][label]="First day"' \
--form 'trip_itinerary[1][title]="KTM - PKH"' \
--form 'trip_itinerary[1][date]="2023-03-01"' \
--form 'trip_itinerary[1][time]="06:00"' \
--form 'trip_itinerary[1][image]="48"' \
--form 'trip_itinerary[1][desc]="this is desc"' \
--form 'trip_itinerary[2][label]="Second Day"' \
--form 'trip_itinerary[2][title]="PKH - MTNG"' \
--form 'trip_itinerary[2][date]="2023-03-06"' \
--form 'trip_itinerary[2][time]="08:00"' \
--form 'trip_itinerary[2][image]="48"' \
--form 'trip_itinerary[2][desc]="this second"' \
--form 'trip_faqs[1][question]="This FAQ Q 1"' \
--form 'trip_faqs[1][answer]="answer 1"' \
--form 'trip_faqs[2][question]="This FAQ Q 2"' \
--form 'trip_faqs[2][answer]="answer 2"' \
--form 'trip_enable_global_tabs="no"' \
--form 'trip_tab_overview_label="Overview"' \
--form 'trip_tab_overview_enable="0"' \
--form 'trip_tab_trip_outline_label="Outline"' \
--form 'trip_tab_trip_outline_enable="0"' \
--form 'trip_tab_trip_includes_label="Include"' \
--form 'trip_tab_trip_includes_enable="1"' \
--form 'trip_tab_trip_excludes_label="Exlude"' \
--form 'trip_tab_trip_excludes_enable="1"' \
--form 'trip_tab_gallery_label="Gallery"' \
--form 'trip_tab_gallery_enable="1"' \
--form 'trip_tab_reviews_label="Review"' \
--form 'trip_tab_reviews_enable="1"' \
--form 'trip_tab_booking_label="Booking"' \
--form 'trip_tab_booking_enable="1"' \
--form 'trip_tab_faq_label="FAQ"' \
--form 'trip_tab_faq_enable="1"' \
--form 'trip_tab_downloads_label="Download"' \
--form 'trip_tab_downloads_enable="1"' \
--form 'trip_tab_guide_label="Guide"' \
--form 'trip_tab_guide_enable="1"' \
--form 'trip_checkout_page_info_label="Checkout Page"' \
--form 'trip_checkout_page_info="Checkout page info."' \
--form 'enable_trip_inventory="yes"' \
--form 'trip_inventory_sold_out_action="allow_trip_enquiry"' \
--form 'trip_inventory_size="4"' \
--form 'trip_inventory_sold_out_message="sold out trip"' \
--form 'inventory_counts_paid_only="yes"' \
--form 'trip_downloads[downloads][]="38"' \
--form 'trip_downloads[email_downloads][]="10"' \
--form 'trip_downloads[email_downloads][]="38"' \
--form 'trip_enable_global_enquiry="yes"' \
--form 'trip_enable_enquiry="no"' \
--form 'trip_partial_payout="no"' \
--form 'minimum_partial_payout_percent[]="25"' \
--form 'minimum_partial_payout_percent[]="75"' \
--form 'trip_tax_activity[]="3"' \
--form 'trip_tax_type[]="8"' \
--form 'trip_tax_type[]="4"' \
--form 'trip_tax_location[]="1"' \
--form 'trip_pricing[1][trip_pricing_name]="normal"' \
--form 'trip_pricing[1][trip_min_pax]="1"' \
--form 'trip_pricing[1][trip_max_pax]="5"' \
--form 'trip_pricing[1][trip_pricing_category_id]="2"' \
--form 'trip_pricing[1][trip_price_per]="person"' \
--form 'trip_pricing[1][trip_regular_price]="190"' \
--form 'trip_pricing[1][trip_is_sale]="yes"' \
--form 'trip_pricing[1][trip_sale_price]="180"' \
--form 'trip_pricing[1][trip_default_pax]="1"' \
--form 'trip_pricing[1][trip_price_key]="8"' \
--form 'trip_enable_fixed_departure="yes"' \
--form 'trip_departure[1][label]="Limit"' \
--form 'trip_departure[1][start_date]="2023-04-05"' \
--form 'trip_departure[1][end_date]="2023-04-09"' \
--form 'trip_departure[1][trip_price_key][]="8"'
var myHeaders = new Headers();
myHeaders.append("Authorization", "Basic <application-key>");
var formdata = new FormData();
formdata.append("trip_title", "test trip");
formdata.append("trip_excerpt", "trip short description sweet trip");
formdata.append("trip_overview", "trip description full descripton ");
formdata.append("trip_outline", "this is outline");
formdata.append("trip_include", "this include trip");
formdata.append("trip_exclude", "this exclude trip");
formdata.append("trip_duration", "8");
formdata.append("trip_duration_night", "7");
formdata.append("trip_gallery[]", "49");
formdata.append("trip_gallery[]", "48");
formdata.append("trip_featured_image", "48");
formdata.append("trip_enable_location_lan_lat", "yes");
formdata.append("trip_location", "kathmandu");
formdata.append("trip_lat", "27.700001");
formdata.append("trip_lng", "85.333336");
formdata.append("trip_itinerary[1][label]", "First day");
formdata.append("trip_itinerary[1][title]", "KTM - PKH");
formdata.append("trip_itinerary[1][date]", "2023-03-01");
formdata.append("trip_itinerary[1][time]", "06:00");
formdata.append("trip_itinerary[1][image]", "48");
formdata.append("trip_itinerary[1][desc]", "this is desc");
formdata.append("trip_itinerary[2][label]", "Second Day");
formdata.append("trip_itinerary[2][title]", "PKH - MTNG");
formdata.append("trip_itinerary[2][date]", "2023-03-06");
formdata.append("trip_itinerary[2][time]", "08:00");
formdata.append("trip_itinerary[2][image]", "48");
formdata.append("trip_itinerary[2][desc]", "this second");
formdata.append("trip_faqs[1][question]", "This FAQ Q 1");
formdata.append("trip_faqs[1][answer]", "answer 1");
formdata.append("trip_faqs[2][question]", "This FAQ Q 2");
formdata.append("trip_faqs[2][answer]", "answer 2");
formdata.append("trip_enable_global_tabs", "no");
formdata.append("trip_tab_overview_label", "Overview");
formdata.append("trip_tab_overview_enable", "0");
formdata.append("trip_tab_trip_outline_label", "Outline");
formdata.append("trip_tab_trip_outline_enable", "0");
formdata.append("trip_tab_trip_includes_label", "Include");
formdata.append("trip_tab_trip_includes_enable", "1");
formdata.append("trip_tab_trip_excludes_label", "Exlude");
formdata.append("trip_tab_trip_excludes_enable", "1");
formdata.append("trip_tab_gallery_label", "Gallery");
formdata.append("trip_tab_gallery_enable", "1");
formdata.append("trip_tab_reviews_label", "Review");
formdata.append("trip_tab_reviews_enable", "1");
formdata.append("trip_tab_booking_label", "Booking");
formdata.append("trip_tab_booking_enable", "1");
formdata.append("trip_tab_faq_label", "FAQ");
formdata.append("trip_tab_faq_enable", "1");
formdata.append("trip_tab_downloads_label", "Download");
formdata.append("trip_tab_downloads_enable", "1");
formdata.append("trip_tab_guide_label", "Guide");
formdata.append("trip_tab_guide_enable", "1");
formdata.append("trip_checkout_page_info_label", "Checkout Page");
formdata.append("trip_checkout_page_info", "Checkout page info.");
formdata.append("enable_trip_inventory", "yes");
formdata.append("trip_inventory_sold_out_action", "allow_trip_enquiry");
formdata.append("trip_inventory_size", "4");
formdata.append("trip_inventory_sold_out_message", "sold out trip");
formdata.append("inventory_counts_paid_only", "yes");
formdata.append("trip_downloads[downloads][]", "38");
formdata.append("trip_downloads[email_downloads][]", "10");
formdata.append("trip_downloads[email_downloads][]", "38");
formdata.append("trip_enable_global_enquiry", "yes");
formdata.append("trip_enable_enquiry", "no");
formdata.append("trip_partial_payout", "no");
formdata.append("minimum_partial_payout_percent[]", "25");
formdata.append("minimum_partial_payout_percent[]", "75");
formdata.append("trip_tax_activity[]", "3");
formdata.append("trip_tax_type[]", "8");
formdata.append("trip_tax_type[]", "4");
formdata.append("trip_tax_location[]", "1");
formdata.append("trip_pricing[1][trip_pricing_name]", "normal");
formdata.append("trip_pricing[1][trip_min_pax]", "1");
formdata.append("trip_pricing[1][trip_max_pax]", "5");
formdata.append("trip_pricing[1][trip_pricing_category_id]", "2");
formdata.append("trip_pricing[1][trip_price_per]", "person");
formdata.append("trip_pricing[1][trip_regular_price]", "190");
formdata.append("trip_pricing[1][trip_is_sale]", "yes");
formdata.append("trip_pricing[1][trip_sale_price]", "180");
formdata.append("trip_pricing[1][trip_default_pax]", "1");
formdata.append("trip_pricing[1][trip_price_key]", "8");
formdata.append("trip_enable_fixed_departure", "yes");
formdata.append("trip_departure[1][label]", "Limit");
formdata.append("trip_departure[1][start_date]", "2023-04-05");
formdata.append("trip_departure[1][end_date]", "2023-04-09");
formdata.append("trip_departure[1][trip_price_key][]", "8");
var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: formdata,
  redirect: 'follow'
};
fetch("https://example.com/wp-json/wptravel/v1/add-itinerary", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
<?php
$client = new Client();
$headers = [
  'Authorization' => 'Basic <application-key>'
];
$options = [
  'multipart' => [
    [
      'name' => 'trip_title',
      'contents' => 'test trip'
    ],
    [
      'name' => 'trip_excerpt',
      'contents' => 'trip short description sweet trip'
    ],
    [
      'name' => 'trip_overview',
      'contents' => 'trip description full descripton '
    ],
    [
      'name' => 'trip_outline',
      'contents' => 'this is outline'
    ],
    [
      'name' => 'trip_include',
      'contents' => 'this include trip'
    ],
    [
      'name' => 'trip_exclude',
      'contents' => 'this exclude trip'
    ],
    [
      'name' => 'trip_duration',
      'contents' => '8'
    ],
    [
      'name' => 'trip_duration_night',
      'contents' => '7'
    ],
    [
      'name' => 'trip_gallery[]',
      'contents' => '49'
    ],
    [
      'name' => 'trip_gallery[]',
      'contents' => '48'
    ],
    [
      'name' => 'trip_featured_image',
      'contents' => '48'
    ],
    [
      'name' => 'trip_enable_location_lan_lat',
      'contents' => 'yes'
    ],
    [
      'name' => 'trip_location',
      'contents' => 'kathmandu'
    ],
    [
      'name' => 'trip_lat',
      'contents' => '27.700001'
    ],
    [
      'name' => 'trip_lng',
      'contents' => '85.333336'
    ],
    [
      'name' => 'trip_itinerary[1][label]',
      'contents' => 'First day'
    ],
    [
      'name' => 'trip_itinerary[1][title]',
      'contents' => 'KTM - PKH'
    ],
    [
      'name' => 'trip_itinerary[1][date]',
      'contents' => '2023-03-01'
    ],
    [
      'name' => 'trip_itinerary[1][time]',
      'contents' => '06:00'
    ],
    [
      'name' => 'trip_itinerary[1][image]',
      'contents' => '48'
    ],
    [
      'name' => 'trip_itinerary[1][desc]',
      'contents' => 'this is desc'
    ],
    [
      'name' => 'trip_itinerary[2][label]',
      'contents' => 'Second Day'
    ],
    [
      'name' => 'trip_itinerary[2][title]',
      'contents' => 'PKH - MTNG'
    ],
    [
      'name' => 'trip_itinerary[2][date]',
      'contents' => '2023-03-06'
    ],
    [
      'name' => 'trip_itinerary[2][time]',
      'contents' => '08:00'
    ],
    [
      'name' => 'trip_itinerary[2][image]',
      'contents' => '48'
    ],
    [
      'name' => 'trip_itinerary[2][desc]',
      'contents' => 'this second'
    ],
    [
      'name' => 'trip_faqs[1][question]',
      'contents' => 'This FAQ Q 1'
    ],
    [
      'name' => 'trip_faqs[1][answer]',
      'contents' => 'answer 1'
    ],
    [
      'name' => 'trip_faqs[2][question]',
      'contents' => 'This FAQ Q 2'
    ],
    [
      'name' => 'trip_faqs[2][answer]',
      'contents' => 'answer 2'
    ],
    [
      'name' => 'trip_enable_global_tabs',
      'contents' => 'no'
    ],
    [
      'name' => 'trip_tab_overview_label',
      'contents' => 'Overview'
    ],
    [
      'name' => 'trip_tab_overview_enable',
      'contents' => '0'
    ],
    [
      'name' => 'trip_tab_trip_outline_label',
      'contents' => 'Outline'
    ],
    [
      'name' => 'trip_tab_trip_outline_enable',
      'contents' => '0'
    ],
    [
      'name' => 'trip_tab_trip_includes_label',
      'contents' => 'Include'
    ],
    [
      'name' => 'trip_tab_trip_includes_enable',
      'contents' => '1'
    ],
    [
      'name' => 'trip_tab_trip_excludes_label',
      'contents' => 'Exlude'
    ],
    [
      'name' => 'trip_tab_trip_excludes_enable',
      'contents' => '1'
    ],
    [
      'name' => 'trip_tab_gallery_label',
      'contents' => 'Gallery'
    ],
    [
      'name' => 'trip_tab_gallery_enable',
      'contents' => '1'
    ],
    [
      'name' => 'trip_tab_reviews_label',
      'contents' => 'Review'
    ],
    [
      'name' => 'trip_tab_reviews_enable',
      'contents' => '1'
    ],
    [
      'name' => 'trip_tab_booking_label',
      'contents' => 'Booking'
    ],
    [
      'name' => 'trip_tab_booking_enable',
      'contents' => '1'
    ],
    [
      'name' => 'trip_tab_faq_label',
      'contents' => 'FAQ'
    ],
    [
      'name' => 'trip_tab_faq_enable',
      'contents' => '1'
    ],
    [
      'name' => 'trip_tab_downloads_label',
      'contents' => 'Download'
    ],
    [
      'name' => 'trip_tab_downloads_enable',
      'contents' => '1'
    ],
    [
      'name' => 'trip_tab_guide_label',
      'contents' => 'Guide'
    ],
    [
      'name' => 'trip_tab_guide_enable',
      'contents' => '1'
    ],
    [
      'name' => 'trip_checkout_page_info_label',
      'contents' => 'Checkout Page'
    ],
    [
      'name' => 'trip_checkout_page_info',
      'contents' => 'Checkout page info.'
    ],
    [
      'name' => 'enable_trip_inventory',
      'contents' => 'yes'
    ],
    [
      'name' => 'trip_inventory_sold_out_action',
      'contents' => 'allow_trip_enquiry'
    ],
    [
      'name' => 'trip_inventory_size',
      'contents' => '4'
    ],
    [
      'name' => 'trip_inventory_sold_out_message',
      'contents' => 'sold out trip'
    ],
    [
      'name' => 'inventory_counts_paid_only',
      'contents' => 'yes'
    ],
    [
      'name' => 'trip_downloads[downloads][]',
      'contents' => '38'
    ],
    [
      'name' => 'trip_downloads[email_downloads][]',
      'contents' => '10'
    ],
    [
      'name' => 'trip_downloads[email_downloads][]',
      'contents' => '38'
    ],
    [
      'name' => 'trip_enable_global_enquiry',
      'contents' => 'yes'
    ],
    [
      'name' => 'trip_enable_enquiry',
      'contents' => 'no'
    ],
    [
      'name' => 'trip_partial_payout',
      'contents' => 'no'
    ],
    [
      'name' => 'minimum_partial_payout_percent[]',
      'contents' => '25'
    ],
    [
      'name' => 'minimum_partial_payout_percent[]',
      'contents' => '75'
    ],
    [
      'name' => 'trip_tax_activity[]',
      'contents' => '3'
    ],
    [
      'name' => 'trip_tax_type[]',
      'contents' => '8'
    ],
    [
      'name' => 'trip_tax_type[]',
      'contents' => '4'
    ],
    [
      'name' => 'trip_tax_location[]',
      'contents' => '1'
    ],
    [
      'name' => 'trip_pricing[1][trip_pricing_name]',
      'contents' => 'normal'
    ],
    [
      'name' => 'trip_pricing[1][trip_min_pax]',
      'contents' => '1'
    ],
    [
      'name' => 'trip_pricing[1][trip_max_pax]',
      'contents' => '5'
    ],
    [
      'name' => 'trip_pricing[1][trip_pricing_category_id]',
      'contents' => '2'
    ],
    [
      'name' => 'trip_pricing[1][trip_price_per]',
      'contents' => 'person'
    ],
    [
      'name' => 'trip_pricing[1][trip_regular_price]',
      'contents' => '190'
    ],
    [
      'name' => 'trip_pricing[1][trip_is_sale]',
      'contents' => 'yes'
    ],
    [
      'name' => 'trip_pricing[1][trip_sale_price]',
      'contents' => '180'
    ],
    [
      'name' => 'trip_pricing[1][trip_default_pax]',
      'contents' => '1'
    ],
    [
      'name' => 'trip_pricing[1][trip_price_key]',
      'contents' => '8'
    ],
    [
      'name' => 'trip_enable_fixed_departure',
      'contents' => 'yes'
    ],
    [
      'name' => 'trip_departure[1][label]',
      'contents' => 'Limit'
    ],
    [
      'name' => 'trip_departure[1][start_date]',
      'contents' => '2023-04-05'
    ],
    [
      'name' => 'trip_departure[1][end_date]',
      'contents' => '2023-04-09'
    ],
    [
      'name' => 'trip_departure[1][trip_price_key][]',
      'contents' => '8'
    ]
]];
$request = new Request('POST', 'https://example.com/wp-json/wptravel/v1/add-itinerary', $headers);
$res = $client->sendAsync($request, $options)->wait();
echo $res->getBody();

Update Itinerary #

This API helps to add update trip by ID.

POST

/wp-json/wptravel/v1/update-itinerary/209

curl --location 'https://example.com/wp-json/wptravel/v1/update-itinerary/209' \
--header 'Authorization: Basic <application-key>' \
--form 'trip_title="Working"' \
--form 'trip_excerpt="excerpt"' \
--form 'trip_overview="overview"' \
--form 'trip_outline="outline"' \
--form 'trip_enable_fixed_departure="no"' \
--form 'trip_duration="9"' \
--form 'trip_duration_night="8"' \
--form 'trip_include="include"' \
--form 'trip_exclude="exclude"' \
--form 'trip_gallery[]="48"' \
--form 'trip_gallery[]="49"' \
--form 'trip_featured_image="48"' \
--form 'trip_enable_location_lan_lat="no"' \
--form 'trip_location="kathmandu"' \
--form 'trip_lat=""' \
--form 'trip_lng=""' \
--form 'trip_itinerary[1][label]="first"' \
--form 'trip_itinerary[1][title]="day one"' \
--form 'trip_itinerary[1][date]="2023-04-14"' \
--form 'trip_itinerary[1][time]="06:00"' \
--form 'trip_itinerary[1][image]="48"' \
--form 'trip_itinerary[1][desc]="asd dsfdsf sdfsdf sdfdsf"' \
--form 'trip_itinerary[2][label]="second"' \
--form 'trip_itinerary[2][title]="day two"' \
--form 'trip_itinerary[2][date]="2023-04-14"' \
--form 'trip_itinerary[2][time]="06:00"' \
--form 'trip_itinerary[2][image]="49"' \
--form 'trip_itinerary[2][desc]="sdfsdf sdfsdf sdfsdf sdfsdf"' \
--form 'trip_faqs[1][question]="one"' \
--form 'trip_faqs[1][answer]="answer one"' \
--form 'trip_faqs[2][question]="two"' \
--form 'trip_faqs[2][answer]="answer two"' \
--form 'trip_enable_global_tabs="no"' \
--form 'trip_tab_overview_label="over"' \
--form 'trip_tab_overview_enable="true"' \
--form 'trip_tab_trip_outline_label="asdasdasd"' \
--form 'trip_tab_trip_outline_enable="false"' \
--form 'trip_tab_trip_includes_label=""' \
--form 'trip_tab_trip_includes_enable=""' \
--form 'trip_tab_trip_excludes_label=""' \
--form 'trip_tab_trip_excludes_enable=""' \
--form 'trip_tab_gallery_label=""' \
--form 'trip_tab_gallery_enable=""' \
--form 'trip_tab_reviews_label=""' \
--form 'trip_tab_reviews_enable=""' \
--form 'trip_tab_booking_label=""' \
--form 'trip_tab_booking_enable=""' \
--form 'trip_tab_faq_label=""' \
--form 'trip_tab_faq_enable=""' \
--form 'trip_tab_downloads_label=""' \
--form 'trip_tab_downloads_enable=""' \
--form 'trip_tab_guide_label=""' \
--form 'trip_tab_guide_enable=""' \
--form 'trip_enable_global_enquiry="yes"' \
--form 'trip_enable_enquiry="yes"' \
--form 'trip_checkout_page_info_label="checkout "' \
--form 'trip_checkout_page_info="checkout page info"' \
--form 'enable_trip_inventory="yes"' \
--form 'trip_inventory_sold_out_action="allow_trip_enquiry"' \
--form 'trip_inventory_size="7"' \
--form 'trip_inventory_sold_out_message="Sold this trip"' \
--form 'inventory_counts_paid_only="yes"' \
--form 'trip_enable_global_enquiry="no"' \
--form 'trip_enable_enquiry="yes"' \
--form 'trip_partial_payout="yes"' \
--form 'minimum_partial_payout_percent[]="20"' \
--form 'minimum_partial_payout_percent[]         ="30"' \
--form 'trip_downloads[downloads][]="38"' \
--form 'trip_downloads[email_downloads][]="10"' \
--form 'trip_downloads[email_downloads][]="38"'
var myHeaders = new Headers();
myHeaders.append("Authorization", "Basic <application-key>");
var formdata = new FormData();
formdata.append("trip_title", "Working");
formdata.append("trip_excerpt", "excerpt");
formdata.append("trip_overview", "overview");
formdata.append("trip_outline", "outline");
formdata.append("trip_enable_fixed_departure", "no");
formdata.append("trip_duration", "9");
formdata.append("trip_duration_night", "8");
formdata.append("trip_include", "include");
formdata.append("trip_exclude", "exclude");
formdata.append("trip_gallery[]", "48");
formdata.append("trip_gallery[]", "49");
formdata.append("trip_featured_image", "48");
formdata.append("trip_enable_location_lan_lat", "no");
formdata.append("trip_location", "kathmandu");
formdata.append("trip_lat", "");
formdata.append("trip_lng", "");
formdata.append("trip_itinerary[1][label]", "first");
formdata.append("trip_itinerary[1][title]", "day one");
formdata.append("trip_itinerary[1][date]", "2023-04-14");
formdata.append("trip_itinerary[1][time]", "06:00");
formdata.append("trip_itinerary[1][image]", "48");
formdata.append("trip_itinerary[1][desc]", "asd dsfdsf sdfsdf sdfdsf");
formdata.append("trip_itinerary[2][label]", "second");
formdata.append("trip_itinerary[2][title]", "day two");
formdata.append("trip_itinerary[2][date]", "2023-04-14");
formdata.append("trip_itinerary[2][time]", "06:00");
formdata.append("trip_itinerary[2][image]", "49");
formdata.append("trip_itinerary[2][desc]", "sdfsdf sdfsdf sdfsdf sdfsdf");
formdata.append("trip_faqs[1][question]", "one");
formdata.append("trip_faqs[1][answer]", "answer one");
formdata.append("trip_faqs[2][question]", "two");
formdata.append("trip_faqs[2][answer]", "answer two");
formdata.append("trip_enable_global_tabs", "no");
formdata.append("trip_tab_overview_label", "over");
formdata.append("trip_tab_overview_enable", "true");
formdata.append("trip_tab_trip_outline_label", "asdasdasd");
formdata.append("trip_tab_trip_outline_enable", "false");
formdata.append("trip_tab_trip_includes_label", "");
formdata.append("trip_tab_trip_includes_enable", "");
formdata.append("trip_tab_trip_excludes_label", "");
formdata.append("trip_tab_trip_excludes_enable", "");
formdata.append("trip_tab_gallery_label", "");
formdata.append("trip_tab_gallery_enable", "");
formdata.append("trip_tab_reviews_label", "");
formdata.append("trip_tab_reviews_enable", "");
formdata.append("trip_tab_booking_label", "");
formdata.append("trip_tab_booking_enable", "");
formdata.append("trip_tab_faq_label", "");
formdata.append("trip_tab_faq_enable", "");
formdata.append("trip_tab_downloads_label", "");
formdata.append("trip_tab_downloads_enable", "");
formdata.append("trip_tab_guide_label", "");
formdata.append("trip_tab_guide_enable", "");
formdata.append("trip_enable_global_enquiry", "yes");
formdata.append("trip_enable_enquiry", "yes");
formdata.append("trip_checkout_page_info_label", "checkout ");
formdata.append("trip_checkout_page_info", "checkout page info");
formdata.append("enable_trip_inventory", "yes");
formdata.append("trip_inventory_sold_out_action", "allow_trip_enquiry");
formdata.append("trip_inventory_size", "7");
formdata.append("trip_inventory_sold_out_message", "Sold this trip");
formdata.append("inventory_counts_paid_only", "yes");
formdata.append("trip_enable_global_enquiry", "no");
formdata.append("trip_enable_enquiry", "yes");
formdata.append("trip_partial_payout", "yes");
formdata.append("minimum_partial_payout_percent[]", "20");
formdata.append("minimum_partial_payout_percent[]         ", "30");
formdata.append("trip_downloads[downloads][]", "38");
formdata.append("trip_downloads[email_downloads][]", "10");
formdata.append("trip_downloads[email_downloads][]", "38");
var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: formdata,
  redirect: 'follow'
};
fetch("https://example.com/wp-json/wptravel/v1/update-itinerary/209", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
<?php
$client = new Client();
$headers = [
  'Authorization' => 'Basic <application-key>'
];
$options = [
  'multipart' => [
    [
      'name' => 'trip_title',
      'contents' => 'Working'
    ],
    [
      'name' => 'trip_excerpt',
      'contents' => 'excerpt'
    ],
    [
      'name' => 'trip_overview',
      'contents' => 'overview'
    ],
    [
      'name' => 'trip_outline',
      'contents' => 'outline'
    ],
    [
      'name' => 'trip_enable_fixed_departure',
      'contents' => 'no'
    ],
    [
      'name' => 'trip_duration',
      'contents' => '9'
    ],
    [
      'name' => 'trip_duration_night',
      'contents' => '8'
    ],
    [
      'name' => 'trip_include',
      'contents' => 'include'
    ],
    [
      'name' => 'trip_exclude',
      'contents' => 'exclude'
    ],
    [
      'name' => 'trip_gallery[]',
      'contents' => '48'
    ],
    [
      'name' => 'trip_gallery[]',
      'contents' => '49'
    ],
    [
      'name' => 'trip_featured_image',
      'contents' => '48'
    ],
    [
      'name' => 'trip_enable_location_lan_lat',
      'contents' => 'no'
    ],
    [
      'name' => 'trip_location',
      'contents' => 'kathmandu'
    ],
    [
      'name' => 'trip_lat',
      'contents' => ''
    ],
    [
      'name' => 'trip_lng',
      'contents' => ''
    ],
    [
      'name' => 'trip_itinerary[1][label]',
      'contents' => 'first'
    ],
    [
      'name' => 'trip_itinerary[1][title]',
      'contents' => 'day one'
    ],
    [
      'name' => 'trip_itinerary[1][date]',
      'contents' => '2023-04-14'
    ],
    [
      'name' => 'trip_itinerary[1][time]',
      'contents' => '06:00'
    ],
    [
      'name' => 'trip_itinerary[1][image]',
      'contents' => '48'
    ],
    [
      'name' => 'trip_itinerary[1][desc]',
      'contents' => 'asd dsfdsf sdfsdf sdfdsf'
    ],
    [
      'name' => 'trip_itinerary[2][label]',
      'contents' => 'second'
    ],
    [
      'name' => 'trip_itinerary[2][title]',
      'contents' => 'day two'
    ],
    [
      'name' => 'trip_itinerary[2][date]',
      'contents' => '2023-04-14'
    ],
    [
      'name' => 'trip_itinerary[2][time]',
      'contents' => '06:00'
    ],
    [
      'name' => 'trip_itinerary[2][image]',
      'contents' => '49'
    ],
    [
      'name' => 'trip_itinerary[2][desc]',
      'contents' => 'sdfsdf sdfsdf sdfsdf sdfsdf'
    ],
    [
      'name' => 'trip_faqs[1][question]',
      'contents' => 'one'
    ],
    [
      'name' => 'trip_faqs[1][answer]',
      'contents' => 'answer one'
    ],
    [
      'name' => 'trip_faqs[2][question]',
      'contents' => 'two'
    ],
    [
      'name' => 'trip_faqs[2][answer]',
      'contents' => 'answer two'
    ],
    [
      'name' => 'trip_enable_global_tabs',
      'contents' => 'no'
    ],
    [
      'name' => 'trip_tab_overview_label',
      'contents' => 'over'
    ],
    [
      'name' => 'trip_tab_overview_enable',
      'contents' => 'true'
    ],
    [
      'name' => 'trip_tab_trip_outline_label',
      'contents' => 'asdasdasd'
    ],
    [
      'name' => 'trip_tab_trip_outline_enable',
      'contents' => 'false'
    ],
    [
      'name' => 'trip_tab_trip_includes_label',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_trip_includes_enable',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_trip_excludes_label',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_trip_excludes_enable',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_gallery_label',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_gallery_enable',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_reviews_label',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_reviews_enable',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_booking_label',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_booking_enable',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_faq_label',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_faq_enable',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_downloads_label',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_downloads_enable',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_guide_label',
      'contents' => ''
    ],
    [
      'name' => 'trip_tab_guide_enable',
      'contents' => ''
    ],
    [
      'name' => 'trip_enable_global_enquiry',
      'contents' => 'yes'
    ],
    [
      'name' => 'trip_enable_enquiry',
      'contents' => 'yes'
    ],
    [
      'name' => 'trip_checkout_page_info_label',
      'contents' => 'checkout '
    ],
    [
      'name' => 'trip_checkout_page_info',
      'contents' => 'checkout page info'
    ],
    [
      'name' => 'enable_trip_inventory',
      'contents' => 'yes'
    ],
    [
      'name' => 'trip_inventory_sold_out_action',
      'contents' => 'allow_trip_enquiry'
    ],
    [
      'name' => 'trip_inventory_size',
      'contents' => '7'
    ],
    [
      'name' => 'trip_inventory_sold_out_message',
      'contents' => 'Sold this trip'
    ],
    [
      'name' => 'inventory_counts_paid_only',
      'contents' => 'yes'
    ],
    [
      'name' => 'trip_enable_global_enquiry',
      'contents' => 'no'
    ],
    [
      'name' => 'trip_enable_enquiry',
      'contents' => 'yes'
    ],
    [
      'name' => 'trip_partial_payout',
      'contents' => 'yes'
    ],
    [
      'name' => 'minimum_partial_payout_percent[]',
      'contents' => '20'
    ],
    [
      'name' => 'minimum_partial_payout_percent[]         ',
      'contents' => '30'
    ],
    [
      'name' => 'trip_downloads[downloads][]',
      'contents' => '38'
    ],
    [
      'name' => 'trip_downloads[email_downloads][]',
      'contents' => '10'
    ],
    [
      'name' => 'trip_downloads[email_downloads][]',
      'contents' => '38'
    ]
]];
$request = new Request('POST', 'https://example.com/wp-json/wptravel/v1/update-itinerary/209', $headers);
$res = $client->sendAsync($request, $options)->wait();
echo $res->getBody();

Delete Itinerary #

This API helps to delete existing trip by ID.

DELETE

/wp-json/wptravel/v1/delete-itinerary/190

curl --location --request DELETE 'https://example.com/wp-json/wptravel/v1/delete-itinerary/190' \
--header 'Authorization: Basic <application-key>'
var myHeaders = new Headers();
myHeaders.append("Authorization", "Basic <application-key>");
var requestOptions = {
  method: 'DELETE',
  headers: myHeaders,
  redirect: 'follow'
};
fetch("https://example.com/wp-json/wptravel/v1/delete-itinerary/190", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
<?php
$client = new Client();
$headers = [
  'Authorization' => 'Basic <application-key>'
];
$request = new Request('DELETE', 'https://example.com/wp-json/wptravel/v1/delete-itinerary/190', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();

Get Itinerary #

This API helps you to get a coupon by ID.

GET

/wp-json/wptravel/v1/get-itinerary/190

curl --location 'https://example.com/wp-json/wptravel/v1/get-itinerary/190'
var requestOptions = {
  method: 'GET',
  redirect: 'follow'
};
fetch("https://example.com/wp-json/wptravel/v1/get-itinerary/190", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
<?php
$client = new Client();
$request = new Request('GET', 'https://example.com/wp-json/wptravel/v1/get-itinerary/190');
$res = $client->sendAsync($request)->wait();
echo $res->getBody();

JSON Response

{
    "code": "WP_TRAVEL_TRIP_INFO",
    "trip": {
        "pricing_type": "multiple-price",
        "custom_booking_type": "custom-link",
        "custom_booking_form": "",
        "custom_booking_link": "",
        "custom_booking_link_text": "",
        "custom_booking_link_open_in_new_tab": false,
        "highest_price": "",
        "pricings": [],
        "trip_price": 0,
        "regular_price": 0,
        "enable_sale": false,
        "featured_image_data": false,
        "has_extras": true,
        "reviews": "0",
        "id": 214,
        "title": "ghfghfgh",
        "url": "http://work.test/itinerary/ghfghfgh/",
        "trip_code": "WT-CODE 214",
        "use_global_tabs": "no",
        "trip_tabs": [
            {
                "id": 0,
                "default_label": "Overview",
                "label": "Overview",
                "show_in_menu": true,
                "tab_key": "overview"
            },
            {
                "id": 1,
                "default_label": "Trip Outline",
                "label": "Trip Outline",
                "show_in_menu": false,
                "tab_key": "trip_outline"
            },
            {
                "id": 2,
                "default_label": "Trip Includes",
                "label": "Trip Includes",
                "show_in_menu": true,
                "tab_key": "trip_includes"
            },
            {
                "id": 3,
                "default_label": "Trip Excludes",
                "label": "Trip Excludes",
                "show_in_menu": true,
                "tab_key": "trip_excludes"
            },
            {
                "id": 4,
                "default_label": "Gallery",
                "label": "Gallery",
                "show_in_menu": true,
                "tab_key": "gallery"
            },
            {
                "id": 5,
                "default_label": "Reviews",
                "label": "Reviews",
                "show_in_menu": true,
                "tab_key": "reviews"
            },
            {
                "id": 6,
                "default_label": "Booking",
                "label": "Booking",
                "show_in_menu": true,
                "tab_key": "booking"
            },
            {
                "id": 7,
                "default_label": "FAQ",
                "label": "FAQ",
                "show_in_menu": true,
                "tab_key": "faq"
            },
            {
                "id": 8,
                "default_label": "Guide",
                "label": "Guide",
                "show_in_menu": false,
                "tab_key": "guide"
            },
            {
                "id": 9,
                "default_label": "Downloads",
                "label": "Downloads",
                "show_in_menu": false,
                "tab_key": "downloads"
            }
        ],
        "trip_overview": "",
        "trip_include": "",
        "trip_exclude": "",
        "trip_outline": "",
        "itineraries": [],
        "faqs": [],
        "trip_facts": [],
        "use_global_trip_enquiry_option": "yes",
        "enable_trip_enquiry_option": "",
        "map_data": {
            "lat": "",
            "lng": "",
            "loc": "",
            "zoomlevel": 10,
            "use_lat_lng": "no"
        },
        "trip_duration": {
            "days": "",
            "nights": ""
        },
        "group_size": 0,
        "minimum_partial_payout_use_global": "",
        "minimum_partial_payout_percent": [
            "1",
            "99"
        ],
        "is_fixed_departure": false,
        "gallery": [],
        "_thumbnail_id": "0",
        "downloads": [],
        "email_downloads": [],
        "itinerary_downloads": "",
        "cuttOffTime": "",
        "selected_guides": [],
        "inventory": {
            "enable_trip_inventory": "no",
            "status_column_enable": "no",
            "wp_travel_inventory_pax_limit_type": "use_group_size",
            "wp_travel_inventory_sold_out_action": "show_sold_out_msg_only",
            "wp_travel_inventory_custom_max_pax": 0,
            "wp_travel_inventory_size": "1",
            "wp_travel_inventory_sold_out_message": "Sold Out!",
            "wp_travel_inventory_status_message_format": "",
            "inventory_counts_paid_only": "no"
        },
        "utilities": {
            "wp_travel_trip_checkout_page_info": "",
            "wp_travel_trip_checkout_page_info_label": "",
            "wp_travel_utils_use_global_faq_for_trip": "no",
            "wp_travel_utils_use_trip_faq_for_trip": "no",
            "wp_travel_itinerary_custom_tab_cnt_": [],
            "wp_travel_trip_code": "WT-CODE 214"
        },
        "advanced_gallery": {
            "items": []
        }
    }
}

Get All Itinerary #

This API helps to get all trips.

GET

/wp-json/wptravel/v1/get-all-itinerary

curl --location 'https://example.com/wp-json/wptravel/v1/get-all-itinerary'
var requestOptions = {
  method: 'GET',
  redirect: 'follow'
};
fetch("https://example.com/wp-json/wptravel/v1/get-all-itinerary", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
<?php
$client = new Client();
$request = new Request('GET', 'https://example.com/wp-json/wptravel/v1/get-all-itinerary');
$res = $client->sendAsync($request)->wait();
echo $res->getBody();

JSON Response

[
    {
    "code": "WP_TRAVEL_TRIP_INFO",
    "trip": {
        "pricing_type": "multiple-price",
        "custom_booking_type": "custom-link",
        "custom_booking_form": "",
        "custom_booking_link": "",
        "custom_booking_link_text": "",
        "custom_booking_link_open_in_new_tab": false,
        "highest_price": "",
        "pricings": [],
        "trip_price": 0,
        "regular_price": 0,
        "enable_sale": false,
        "featured_image_data": false,
        "has_extras": true,
        "reviews": "0",
        "id": 214,
        "title": "ghfghfgh",
        "url": "http://work.test/itinerary/ghfghfgh/",
        "trip_code": "WT-CODE 214",
        "use_global_tabs": "no",
        "trip_tabs": [
            {
                "id": 0,
                "default_label": "Overview",
                "label": "Overview",
                "show_in_menu": true,
                "tab_key": "overview"
            },
            {
                "id": 1,
                "default_label": "Trip Outline",
                "label": "Trip Outline",
                "show_in_menu": false,
                "tab_key": "trip_outline"
            },
            {
                "id": 2,
                "default_label": "Trip Includes",
                "label": "Trip Includes",
                "show_in_menu": true,
                "tab_key": "trip_includes"
            },
            {
                "id": 3,
                "default_label": "Trip Excludes",
                "label": "Trip Excludes",
                "show_in_menu": true,
                "tab_key": "trip_excludes"
            },
            {
                "id": 4,
                "default_label": "Gallery",
                "label": "Gallery",
                "show_in_menu": true,
                "tab_key": "gallery"
            },
            {
                "id": 5,
                "default_label": "Reviews",
                "label": "Reviews",
                "show_in_menu": true,
                "tab_key": "reviews"
            },
            {
                "id": 6,
                "default_label": "Booking",
                "label": "Booking",
                "show_in_menu": true,
                "tab_key": "booking"
            },
            {
                "id": 7,
                "default_label": "FAQ",
                "label": "FAQ",
                "show_in_menu": true,
                "tab_key": "faq"
            },
            {
                "id": 8,
                "default_label": "Guide",
                "label": "Guide",
                "show_in_menu": false,
                "tab_key": "guide"
            },
            {
                "id": 9,
                "default_label": "Downloads",
                "label": "Downloads",
                "show_in_menu": false,
                "tab_key": "downloads"
            }
        ],
        "trip_overview": "",
        "trip_include": "",
        "trip_exclude": "",
        "trip_outline": "",
        "itineraries": [],
        "faqs": [],
        "trip_facts": [],
        "use_global_trip_enquiry_option": "yes",
        "enable_trip_enquiry_option": "",
        "map_data": {
            "lat": "",
            "lng": "",
            "loc": "",
            "zoomlevel": 10,
            "use_lat_lng": "no"
        },
        "trip_duration": {
            "days": "",
            "nights": ""
        },
        "group_size": 0,
        "minimum_partial_payout_use_global": "",
        "minimum_partial_payout_percent": [
            "1",
            "99"
        ],
        "is_fixed_departure": false,
        "gallery": [],
        "_thumbnail_id": "0",
        "downloads": [],
        "email_downloads": [],
        "itinerary_downloads": "",
        "cuttOffTime": "",
        "selected_guides": [],
        "inventory": {
            "enable_trip_inventory": "no",
            "status_column_enable": "no",
            "wp_travel_inventory_pax_limit_type": "use_group_size",
            "wp_travel_inventory_sold_out_action": "show_sold_out_msg_only",
            "wp_travel_inventory_custom_max_pax": 0,
            "wp_travel_inventory_size": "1",
            "wp_travel_inventory_sold_out_message": "Sold Out!",
            "wp_travel_inventory_status_message_format": "",
            "inventory_counts_paid_only": "no"
        },
        "utilities": {
            "wp_travel_trip_checkout_page_info": "",
            "wp_travel_trip_checkout_page_info_label": "",
            "wp_travel_utils_use_global_faq_for_trip": "no",
            "wp_travel_utils_use_trip_faq_for_trip": "no",
            "wp_travel_itinerary_custom_tab_cnt_": [],
            "wp_travel_trip_code": "WT-CODE 214"
        },
        "advanced_gallery": {
            "items": []
        }
    }
}
{
    "code": "WP_TRAVEL_TRIP_INFO",
    "trip": {
        "pricing_type": "multiple-price",
        "custom_booking_type": "custom-link",
        "custom_booking_form": "",
        "custom_booking_link": "",
        "custom_booking_link_text": "",
        "custom_booking_link_open_in_new_tab": false,
        "highest_price": "",
        "pricings": [],
        "trip_price": 0,
        "regular_price": 0,
        "enable_sale": false,
        "featured_image_data": false,
        "has_extras": true,
        "reviews": "0",
        "id": 214,
        "title": "ghfghfgh",
        "url": "http://work.test/itinerary/ghfghfgh/",
        "trip_code": "WT-CODE 214",
        "use_global_tabs": "no",
        "trip_tabs": [
            {
                "id": 0,
                "default_label": "Overview",
                "label": "Overview",
                "show_in_menu": true,
                "tab_key": "overview"
            },
            {
                "id": 1,
                "default_label": "Trip Outline",
                "label": "Trip Outline",
                "show_in_menu": false,
                "tab_key": "trip_outline"
            },
            {
                "id": 2,
                "default_label": "Trip Includes",
                "label": "Trip Includes",
                "show_in_menu": true,
                "tab_key": "trip_includes"
            },
            {
                "id": 3,
                "default_label": "Trip Excludes",
                "label": "Trip Excludes",
                "show_in_menu": true,
                "tab_key": "trip_excludes"
            },
            {
                "id": 4,
                "default_label": "Gallery",
                "label": "Gallery",
                "show_in_menu": true,
                "tab_key": "gallery"
            },
            {
                "id": 5,
                "default_label": "Reviews",
                "label": "Reviews",
                "show_in_menu": true,
                "tab_key": "reviews"
            },
            {
                "id": 6,
                "default_label": "Booking",
                "label": "Booking",
                "show_in_menu": true,
                "tab_key": "booking"
            },
            {
                "id": 7,
                "default_label": "FAQ",
                "label": "FAQ",
                "show_in_menu": true,
                "tab_key": "faq"
            },
            {
                "id": 8,
                "default_label": "Guide",
                "label": "Guide",
                "show_in_menu": false,
                "tab_key": "guide"
            },
            {
                "id": 9,
                "default_label": "Downloads",
                "label": "Downloads",
                "show_in_menu": false,
                "tab_key": "downloads"
            }
        ],
        "trip_overview": "",
        "trip_include": "",
        "trip_exclude": "",
        "trip_outline": "",
        "itineraries": [],
        "faqs": [],
        "trip_facts": [],
        "use_global_trip_enquiry_option": "yes",
        "enable_trip_enquiry_option": "",
        "map_data": {
            "lat": "",
            "lng": "",
            "loc": "",
            "zoomlevel": 10,
            "use_lat_lng": "no"
        },
        "trip_duration": {
            "days": "",
            "nights": ""
        },
        "group_size": 0,
        "minimum_partial_payout_use_global": "",
        "minimum_partial_payout_percent": [
            "1",
            "99"
        ],
        "is_fixed_departure": false,
        "gallery": [],
        "_thumbnail_id": "0",
        "downloads": [],
        "email_downloads": [],
        "itinerary_downloads": "",
        "cuttOffTime": "",
        "selected_guides": [],
        "inventory": {
            "enable_trip_inventory": "no",
            "status_column_enable": "no",
            "wp_travel_inventory_pax_limit_type": "use_group_size",
            "wp_travel_inventory_sold_out_action": "show_sold_out_msg_only",
            "wp_travel_inventory_custom_max_pax": 0,
            "wp_travel_inventory_size": "1",
            "wp_travel_inventory_sold_out_message": "Sold Out!",
            "wp_travel_inventory_status_message_format": "",
            "inventory_counts_paid_only": "no"
        },
        "utilities": {
            "wp_travel_trip_checkout_page_info": "",
            "wp_travel_trip_checkout_page_info_label": "",
            "wp_travel_utils_use_global_faq_for_trip": "no",
            "wp_travel_utils_use_trip_faq_for_trip": "no",
            "wp_travel_itinerary_custom_tab_cnt_": [],
            "wp_travel_trip_code": "WT-CODE 214"
        },
        "advanced_gallery": {
            "items": []
        }
    }
}
]

Powered by BetterDocs