Prerequisites
- A mapping.travel account with an API token (see Authentication)
curlor 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 If you are mapping against a specific supplier’s ID space (for A successful upload returns Save the
/api/v1/inventory. The API accepts multipart/form-data.ID_TO_ID or HYBRID mode), include the supplierCode parameter:202 Accepted with an uploadId: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 A successful response returns
/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 asupplierCodeon the upload)HYBRID: try ID-based match first, fall back to fuzzy
202 Accepted with a mappingJobId:5
Check mapping status
Mapping jobs run asynchronously. Poll While running:When complete:
GET /api/v1/mapping/{mappingJobId} until status is COMPLETED or FAILED.6
Retrieve your mapping results
Once the job is The response includes each partner hotel alongside its matched reference hotel:Hotels with no match are included with
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.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.