Skip to main content
A partner inventory is a file containing your hotel records that you upload to mapping.travel for matching against the global reference dataset. Each record represents one hotel in your system, identified by your internal ID and enriched with the name, address, and geographic coordinates needed to find a match. Once uploaded, reference the inventory by its uploadId when starting a mapping job.

Supported file formats

You can upload inventory files in any of the following formats:
The maximum file size is 500 MB. Files larger than this are rejected with a 413 response.

Required and optional fields

Every record in your inventory file must include the following fields: The following field is optional but required if you want to use ID-to-ID or Hybrid mapping:
Include supplierCode in your inventory when you have supplier hotel IDs available. This unlocks ID-to-ID and Hybrid mapping modes, which produce more precise matches than fuzzy matching alone.

Sample CSV

Upload idempotency

Uploading the same file twice returns the same uploadId. mapping.travel identifies duplicate files by their content hash. If the hash matches a file you have already uploaded, the API returns the existing upload record rather than creating a new one. You can safely retry failed upload requests without creating duplicate inventories.

Upload status lifecycle

After you upload a file, you can poll GET /api/v1/inventory/{uploadId} to track its progress. An upload moves through the following statuses:
1

PENDING

The file has been received and is queued for processing.
2

PROCESSING

The file is being parsed and validated.
3

COMPLETED

The file has been processed successfully. The inventory is ready to use in a mapping job.
If something goes wrong, the upload moves to one of these terminal states:
You can only cancel an upload while it is in PENDING or PROCESSING status. Once an upload reaches COMPLETED or FAILED, it cannot be cancelled.

Managing your inventories

Use the following endpoints to work with your inventory files: