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>'Successful response with paginated trips
URL-friendly identifier for the trip
SEO description for the trip
Start date of the trip
End date of the trip
Expiration date for the trip offer
URL of the trip cover image
Timestamp when the trip was created
Timestamp when the trip was last updated
URL of the agent's profile picture
{ "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"
]
}'Trip created successfully
URL-friendly identifier for the trip
SEO description for the trip
Expiration date for the trip offer
URL of the trip cover image
Timestamp when the trip was created
Timestamp when the trip was last updated
{ "id": 12345, "title": "Paris Summer Vacation", "slug": "paris-summer-vacation-abc123", "joinCode": "ABC12345", "code": "TRIP-001", "duration": 7, "dateStart": "2025-07-15T00:00:00.000Z", "dateFinish": "2025-07-22T00:00:00.000Z", "countries": [ "FRA" ], "agentId": 100, "accountId": 50, "template": false, "createdAt": "2025-01-15T10:30:00.000Z", "updatedAt": "2025-01-15T10:30:00.000Z", "visualizations": 0 }
- Mock serverhttps://api-docs.moguplatform.com/_mock/openapi/trips/bulk-delete
- Production serverhttps://trips.api.moguplatform.com/trips/bulk-delete
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-docs.moguplatform.com/_mock/openapi/trips/bulk-delete \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"tripIds": [
12345,
12346,
12347
]
}'{ "message": "Trips deleted successfully", "deletedCount": 3 }
- 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>'Trip details retrieved successfully
URL-friendly identifier for the trip
SEO description for the trip
Expiration date for the trip offer
URL of the trip cover image
Timestamp when the trip was created
Timestamp when the trip was last updated
{ "id": 12345, "title": "Paris Summer Vacation", "slug": "paris-summer-vacation-abc123", "joinCode": "ABC12345", "seoDescription": "Experience the best of Paris in this 7-day adventure", "code": "TRIP-001", "duration": 7, "dateStart": "2025-07-15T00:00:00.000Z", "dateFinish": "2025-07-22T00:00:00.000Z", "countries": [ "FRA" ], "imageUrl": "https://example.com/paris-cover.jpg", "agentId": 100, "accountId": 50, "template": false, "createdAt": "2025-01-15T10:30:00.000Z", "updatedAt": "2025-01-18T14:45:00.000Z", "visualizations": 150 }
- 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"
}'Trip updated successfully
URL-friendly identifier for the trip
SEO description for the trip
Expiration date for the trip offer
URL of the trip cover image
Timestamp when the trip was created
Timestamp when the trip was last updated
{ "id": 12345, "title": "Paris Summer Vacation", "slug": "paris-summer-vacation-abc123", "joinCode": "ABC12345", "seoDescription": "Experience the best of Paris in this 7-day adventure", "duration": 7, "dateStart": "2025-07-15T00:00:00.000Z", "dateFinish": "2025-07-22T00:00:00.000Z", "dateExpiration": "2025-06-30T00:00:00.000Z", "code": "TRIP-001", "logo": "https://example.com/trip-logo.png", "countries": [ "FRA", "ESP" ], "imageUrl": "https://example.com/trip-cover.jpg", "agentId": 100, "template": false, "accountId": 50, "createdAt": "2025-01-15T10:30:00.000Z", "updatedAt": "2025-01-18T14:45:00.000Z", "visualizations": 150 }
- 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.)
- accommodation
- activity
- flight
- text
- price
- payment
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" }