Create a map for a supplier
const url = 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/studio/map/supplier';const options = { method: 'POST', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: 'null'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/studio/map/supplier \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullCreate a new map centered on a supplier property with a single marker, priced to its best-available rate for the requested inventory type.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”UUID of the managing entity that will own the map.
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Request to create a map for a single supplier property
object
UUID of the customization context (e.g., Wink Links, channel manager)
Example
a2c8f1d4-5e9b-4a7c-9f23-6b1e8d4c2f05Display name for this map
Example
Premium Hotels in Southeast AsiaUUID of the supplier property to display on the map
Example
7c5a2e9f-3d8b-4f1c-a6e2-8b4f0c9d3e71Type of inventory to display from the supplier (GUEST_ROOM, ACTIVITY, SPA, etc.)
Example
GUEST_ROOMAllow users to pan the map by dragging
Example
trueAllow users to zoom in and out
Example
trueInitial zoom level (0-21, where 0 shows the entire world)
Example
15Map visual style (normal, clean, or bluish)
Example
normalHexadecimal color code for map markers
Example
cc2138Height of the embedded map in pixels
Example
500Which data to display initially (NATIVE, MODIFIED, or AFFILIATE)
Example
NATIVEOptional circular overlay regions on the map
object
Circle radius from center
Example
2.5Circle center point
object
Optional rectangular overlay regions on the map
object
A GeoJSON rectangle
object
A GeoJSON rectangle
object
A GeoJSON rectangle
object
Optional custom markers to display on the map
object
A GeoJSON point
object
Optional polygonal overlay regions on the map
object
A GeoJSON polygon
object
object
object
object
Responses
Section titled “ Responses ”Created
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
Map owner identifier
Customization identifier
Name of map
Inventory type identifier. Either a single channel inventory identifier, a list identifier or a dynamic search identifier.
Type of inventory
Map center point
object
User can move around / pan the map
User can zoom in/out of the map
Valid Google maps zoom level
Map style
Map marker color
Map height in pixels
Indicate which initial values to display first on the front-facing card
A way to persist a GeoJSON circle
object
Circle radius from center
Circle center point
object
Custom-defined rectangles
object
A GeoJSON rectangle
object
A GeoJSON rectangle
object
A GeoJSON rectangle
object
Custom-defined markers
object
A GeoJSON point
object
Custom-defined polygons
object
A GeoJSON polygon
object
object
object
object
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "ownerIdentifier": "", "customizationIdentifier": "", "name": "", "typeIdentifier": "", "type": "SINGLE", "center": "", "draggable": true, "zoomable": true, "initialZoomLevel": "", "mapStyle": "normal", "mapMarkerColor": "cc2138", "mapHeight": "", "displayType": "NATIVE", "circles": [ null ], "rectangles": [ "" ], "markers": [ "" ], "polygons": [ "" ]}Bad Request
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized
object
object
Forbidden
object
object
Internal Server Error
object
Example generated
{}