I'm Guide API Documentation
  1. Custom Trip
I'm Guide API Documentation
  • I'm Guide - API Version Control
  • I'm Guide - Custom Error Exception
  • Planner
    • Route
      • Popular Route V1
      • Popular Route [V3] Combind
      • Popular Route AI [V2]
      • Route Detail V1
    • Place
      • Region Place V1
      • Place LIST V2 With Favorite Flag
      • Region Place V2 - include fav flag specific user
      • Place LIST V1
      • Place Detail - ATTRACTION V1
    • Custom Trip
      • Delete Custom Trip V1
        DELETE
      • Create trip with ai prompt
        POST
      • Optimize trip with ai prompt
        POST
      • Create Custom trip V1
        POST
      • Edit Custom Trip V1
        PUT
      • VIew Detail User Custom Trip V1
        GET
      • VIew List of User Custom Trip V1
        GET
      • Create trip with custom presetdata
        POST
      • Create trip with popular presetdata
        POST
      • Review Trip V1
        POST
      • Get Unavaliable Date List V1
        GET
      • Check Unavaliable Date V1
        POST
      • Create trip with ai prompt V2
        POST
      • VIew List of User Active Trip V1
        GET
    • Active Trip
      • Get Active Trip V1
    • Config
      • Get Province
      • Get Place-Keyword
    • Activities
      • Add Fav V1
      • Add view Details Logs v1
      • Add and Update Preference v1
      • Remove Fav V1
      • Clear details Logs v1
      • Get Fav V1
      • Get Fav By Province V1
      • Get Fav By Id V1
      • Get view details Logs v1
      • Get Preference Question v1
      • Get Preference V1
      • Get Analytics AI Data
    • Communities
      • Add to community
      • Get Communities
      • Get Web Content Communities
      • edit post in community
      • delete post in community - soft delete
    • Feedback
      • Add Feedback
      • Get Feedback Web-Admin
    • Internal Endpoint
      • sync TAT ROute Data
      • sync community orderjob
      • Get Route AI Data
      • Untitled Endpoint
      • LINE SYNC CURRENT TRIP
    • Line
      • Get List Of Linked Trip In Group V1
      • Get Detail Of Linked Trip In Group V1
      • Get Day Detail Of Linked Trip In Group V1
      • Generate Link Code V1
      • Verify Link Code V1
      • Unlink From LIne V1
      • Unlink From App V1
      • Get Current Trip In Group V1
      • Get Current Trip By Day In Group V1
      • Init Line
      • Update Line Line Notification
      • Update General Line Notification
      • Get Noti Trip Line
      • LINE GET TODAY TRIP BY DAY
      • LINE GET TODAY TRIP
      • LINE GET TODAY TRIP
      • Get Noti General Line
  • Core
  • AI
    • AI Progress Notification
    • INTERNAL: getPlaceInProvince
      POST
    • UAT
      POST
  • Storage
    • File Upload
    • Get File
    • Get File List ADMIN
  • Internal
    • AI
  • TEST TAT
    GET
  1. Custom Trip

Create trip with custom presetdata

POST
/trips/v1/custom/preset
Planner > RoutePlanner > Custom
Last modified:2024-11-28 05:15:18

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
max_place_per_day
integer 
required
trip_start_date
string <date-time>
required
trip_end_date
string <date-time>
required
trip_name
string 
required
place_category
array[string]
required
province_destination
string 
required
province_destination is province name
Example
{
    "max_place_per_day": 0,
    "trip_start_date": "2019-08-24T14:15:22Z",
    "trip_end_date": "2019-08-24T14:15:22Z",
    "trip_name": "string",
    "place_category": [
        "string"
    ],
    "province_destination": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/trips/v1/custom/preset' \
--header 'Content-Type: application/json' \
--data-raw '{
    "max_place_per_day": 0,
    "trip_start_date": "2019-08-24T14:15:22Z",
    "trip_end_date": "2019-08-24T14:15:22Z",
    "trip_name": "string",
    "place_category": [
        "string"
    ],
    "province_destination": "string"
}'

Responses

🟢200Success
application/json
Body
status
string 
optional
Example:
success
action
string 
optional
Example:
create
data
object (response-route-detail) 
optional
route_id
string 
optional
route_name
string 
optional
number_of_days
integer 
optional
days
array [object {2}] 
optional
places
array[object (response-place-detail) {21}] 
optional
update_at
string <date-time>
optional
trip_start_date
string <date>
required
trip_end_date
string <date>
required
owner
string 
optional
trip_id
string 
optional
Example
{
    "status": "success",
    "action": "create",
    "data": {
        "route_id": "string",
        "route_name": "string",
        "number_of_days": 0,
        "days": [
            {
                "day": 0,
                "place": [
                    "string"
                ]
            }
        ],
        "places": [
            {
                "place_id": "string",
                "place_name": "string",
                "latitude": 0,
                "longitude": 0,
                "introduction": "string",
                "place_detail": "string",
                "tags": [
                    "string"
                ],
                "fee": {
                    "thai_adult": 0,
                    "thai_child": 0,
                    "foreigner_adult": 0,
                    "foreigner_child": 0
                },
                "target": [
                    "string"
                ],
                "address": {
                    "address": "string",
                    "sub_district": "string",
                    "district": "string",
                    "province": "string"
                },
                "contact": {
                    "phone": [
                        "string"
                    ],
                    "mobile": [
                        "string"
                    ],
                    "email": [
                        "string"
                    ],
                    "urls": [
                        "string"
                    ]
                },
                "thumbnail_url": "string",
                "images": [
                    "string"
                ],
                "payment_methods": "string",
                "opening_hours": {
                    "mon": {
                        "hasTime": true,
                        "open": "string",
                        "close": "string",
                        "string_time": "string"
                    },
                    "tue": {
                        "hasTime": true,
                        "open": "string",
                        "close": "string",
                        "string_time": "string"
                    },
                    "wed": {
                        "hasTime": true,
                        "open": "string",
                        "close": "string",
                        "string_time": "string"
                    },
                    "thu": {
                        "hasTime": true,
                        "open": "string",
                        "close": "string",
                        "string_time": "string"
                    },
                    "fri": {
                        "hasTime": true,
                        "open": "string",
                        "close": "string",
                        "string_time": "string"
                    },
                    "sat": {
                        "hasTime": true,
                        "open": "string",
                        "close": "string",
                        "string_time": "string"
                    },
                    "sun": {
                        "hasTime": true,
                        "open": "string",
                        "close": "string",
                        "string_time": "string"
                    },
                    "special_close_text": "string"
                },
                "destination": "string",
                "category": "string",
                "sub_category": [
                    "string"
                ],
                "sync_at": "string",
                "category_code": "string",
                "facilities": [
                    [
                        "string"
                    ]
                ]
            }
        ]
    },
    "update_at": "2019-08-24T14:15:22Z",
    "trip_start_date": "2019-08-24",
    "trip_end_date": "2019-08-24",
    "owner": "string",
    "trip_id": "string"
}
🟠404Record Not Found
🔴500Server Error
🔴502Bad Gateway
🔴503Service Unavailable
Modified at 2024-11-28 05:15:18
Previous
VIew List of User Custom Trip V1
Next
Create trip with popular presetdata
Built with