Public API for managing trips and catalogs in the MOGU platform
MOGU Public API (1.0.0)
- Mock serverhttps://api-docs.moguplatform.com/_mock/openapi/trips
- Production serverhttps://trips.api.moguplatform.com/trips
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-docs.moguplatform.com/_mock/openapi/trips?page=1&pageSize=20&filters=%5B{%22field%22%3A%22duration%22%2C%22operator%22%3A%22gte%22%2C%22value%22%3A5}%5D&orderBy={%22field%22%3A%22createdAt%22%2C%22direction%22%3A%22desc%22}&search={%22fields%22%3A%5B%22title%22%5D%2C%22term%22%3A%22Paris%22}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": [ {} ], "page": 1, "pageSize": 20, "totalCount": 150, "totalPages": 8 }
- Mock serverhttps://api-docs.moguplatform.com/_mock/openapi/trips
- Production serverhttps://trips.api.moguplatform.com/trips
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-docs.moguplatform.com/_mock/openapi/trips \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"title": "Paris Summer Vacation",
"duration": 7,
"dateStart": "2025-07-15T00:00:00.000Z",
"dateFinish": "2025-07-22T00:00:00.000Z",
"countries": [
"FRA"
]
}'- Mock serverhttps://api-docs.moguplatform.com/_mock/openapi/trips
- Production serverhttps://trips.api.moguplatform.com/trips
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://api-docs.moguplatform.com/_mock/openapi/trips \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"tripId": [
12345,
12346,
12347
]
}'- Mock serverhttps://api-docs.moguplatform.com/_mock/openapi/trips/{tripId}
- Production serverhttps://trips.api.moguplatform.com/trips/{tripId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api-docs.moguplatform.com/_mock/openapi/trips/12345 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'- Mock serverhttps://api-docs.moguplatform.com/_mock/openapi/trips/{tripId}
- Production serverhttps://trips.api.moguplatform.com/trips/{tripId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://api-docs.moguplatform.com/_mock/openapi/trips/12345 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"title": "Paris Summer Vacation",
"duration": 7,
"dateStart": "2025-07-15T00:00:00.000Z",
"dateFinish": "2025-07-22T00:00:00.000Z"
}'- Mock serverhttps://api-docs.moguplatform.com/_mock/openapi/trips/{tripId}
- Production serverhttps://trips.api.moguplatform.com/trips/{tripId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://api-docs.moguplatform.com/_mock/openapi/trips/12345 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'- Mock serverhttps://api-docs.moguplatform.com/_mock/openapi/trips/{tripId}/config
- Production serverhttps://trips.api.moguplatform.com/trips/{tripId}/config
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api-docs.moguplatform.com/_mock/openapi/trips/12345/config \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Trip configuration retrieved successfully
Array of content blocks (accommodations, activities, transport, etc.)
- accomodation
- activity
- flight
- text
- price
- payment
- BlockGeneric
Contact information displayed on the trip
Array of image URLs for the trip slider
Trip settings and preferences
WhatsApp sharing configuration
First day of the week
Where to display currency symbol
Additional information form configuration
Form field definitions
Visual theme and branding for the trip
Navigation layout style
Trip image gallery
{ "version": "1.0.0", "blocks": [ { … } ], "contact": { "address": "123 Main Street, Paris, France", "agencyName": "Travel Dreams Agency", "agentName": "John Doe", "description": "Expert travel agent specializing in European tours", "email": "contact@travelagency.com", "phoneNumber": "+33 1 23 45 67 89", "pictureUrl": "https://example.com/agent-photo.jpg", "type": "agency", "visible": true, "web": "https://travelagency.com" }, "slider": [ "https://example.com/image1.jpg" ], "updatedAt": "2025-01-20T14:45:00.000Z", "settings": { "description": "A wonderful 7-day trip to Paris", "canDownloadPdf": true, "canCreateCopy": false, "hasExpiration": false, "shareOnWhatsapp": { … }, "language": "en", "startOfTheWeek": "monday", "timeFormat": "24h", "dateFormat": "DD/MM/YYYY", "timezone": "Europe/Paris", "currencySymbolPosition": "end", "decimalSeparator": ",", "currency": "EUR" }, "moreInfo": { "enabled": false, "fields": [] }, "paymentMethodId": 123, "quotation": { "planningRate": 10, "secondRate": 5 }, "theme": { "headerImage": { … }, "navigation": "verticalRight", "logo": "https://example.com/logo.png", "color": "#195bf5", "font": "Roboto", "pdfContactPosition": "lastPage" }, "images": { "files": [] }, "cover": { "enabled": true, "files": [] } }
Array of blocks with flexible content validation
Block type (accommodation, activity, transport, etc.)
Whether the block is hidden
Contact information displayed on the trip
Trip settings and preferences
WhatsApp sharing configuration
First day of the week
Where to display currency symbol
Additional information form configuration
Form field definitions
Visual theme and branding for the trip
Navigation layout style
- Mock serverhttps://api-docs.moguplatform.com/_mock/openapi/trips/{tripId}/config
- Production serverhttps://trips.api.moguplatform.com/trips/{tripId}/config
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://api-docs.moguplatform.com/_mock/openapi/trips/12345/config \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"version": "1.0.0",
"blocks": [
{
"id": "block-123",
"type": "accommodation",
"content": {},
"children": [
{}
],
"parent": "block-parent-456",
"hidden": false
}
],
"contact": {
"address": "123 Main Street, Paris, France",
"agencyName": "Travel Dreams Agency",
"agentName": "John Doe",
"description": "Expert travel agent specializing in European tours",
"email": "contact@travelagency.com",
"phoneNumber": "+33 1 23 45 67 89",
"pictureUrl": "https://example.com/agent-photo.jpg",
"type": "agency",
"visible": true,
"web": "https://travelagency.com"
},
"slider": [],
"settings": {
"description": "A wonderful 7-day trip to Paris",
"canDownloadPdf": true,
"canCreateCopy": false,
"hasExpiration": false,
"shareOnWhatsapp": {
"enabled": true,
"phoneNumber": "+33123456789"
},
"language": "en",
"startOfTheWeek": "monday",
"timeFormat": "24h",
"dateFormat": "DD/MM/YYYY",
"timezone": "Europe/Paris",
"currencySymbolPosition": "end",
"decimalSeparator": ",",
"currency": "EUR"
},
"moreInfo": {
"enabled": false,
"fields": []
},
"paymentMethodId": 123,
"quotation": {
"planningRate": 10,
"secondRate": 5
},
"theme": {
"headerImage": {
"config": "cover"
},
"navigation": "verticalRight",
"logo": "https://example.com/logo.png",
"color": "#195bf5",
"font": "Roboto",
"pdfContactPosition": "lastPage"
},
"images": {
"files": []
},
"cover": {
"enabled": true,
"files": []
}
}'{ "message": "Config updated" }