Skip to main content
This guide walks you through the core mapping.travel API workflow: authenticate, upload an inventory file, start a mapping job, poll for completion, and retrieve matched results.

Prerequisites

  • A mapping.travel account with an API token (see Authentication)
  • curl or any HTTP client
  • A hotel inventory file in CSV, JSON, Excel (.xlsx), or Parquet format
1

Get your API key

Retrieve your API token from Settings → API tokens in the mapping.travel dashboard. You use it in every request below.Set it as an environment variable to avoid repeating it:
2

Prepare your inventory file

Your inventory file must include hotel records with enough information for matching. For CSV, use the following columns:Example CSV:
JSON, Excel (.xlsx), and Parquet files are also accepted. The column names must match the schema above regardless of format.
3

Upload your inventory

POST your file to /api/v1/inventory. The API accepts multipart/form-data.
If you are mapping against a specific supplier’s ID space (for ID_TO_ID or HYBRID mode), include the supplierCode parameter:
A successful upload returns 202 Accepted with an uploadId:
Save the uploadId. You need it in the next steps.
Uploads are idempotent. If you upload the same file twice, the API returns the same uploadId.
4

Start a mapping job

POST to /api/v1/mapping with the partnerInventoryId from your upload. Choose a mode that matches your use case:
  • STANDARD: fuzzy matching by name and location (recommended for most cases)
  • ID_TO_ID: match by supplier hotel ID (requires a supplierCode on the upload)
  • HYBRID: try ID-based match first, fall back to fuzzy
A successful response returns 202 Accepted with a mappingJobId:
If your free plan quota is exhausted, you receive a 403 response. Upgrade your plan or wait for the quota to reset.
5

Check mapping status

Mapping jobs run asynchronously. Poll GET /api/v1/mapping/{mappingJobId} until status is COMPLETED or FAILED.
While running:
When complete:
Poll every 5 to 10 seconds for small files. For large inventories, start with a 30-second interval and adjust based on your typical job duration.
6

Retrieve your mapping results

Once the job is COMPLETED, search the results by POSTing to /api/v1/mapping/{mappingJobId}/results/search. You can filter by hotel name, city, country, partner ID, or matched reference ID.
The response includes each partner hotel alongside its matched reference hotel:
Hotels with no match are included with matchedReferenceHotelId: null and matchMethod: null.

Next steps

Inventory uploads

Manage uploads, list past inventories, and download files.

Mapping modes

Learn when to use STANDARD, ID_TO_ID, and HYBRID modes.

Billing and usage

Monitor quota usage and manage your subscription.

API reference

Full reference for all endpoints, parameters, and response shapes.