File format
Your inventory file must include the following columns. Column names are case-sensitive.
Example CSV:
supplierCode query parameter when uploading and add your supplier’s hotel IDs in a supplierCode column:
1
Prepare your file
Export your hotel data in one of the supported formats. Make sure every row has at minimum an
id, name, city, and country. Remove any rows with blank IDs; they cause the upload to fail with a 400 error.If your file is larger than 500 MB, split it into multiple uploads and run a separate mapping job for each.2
Upload the file
Send a A successful upload returns HTTP 202 Accepted with an upload object:Save the
multipart/form-data POST request to /api/v1/inventory. Include your supplier code as a query parameter if you have one.uploadId. You need it to check status and to start a mapping job.3
Poll for processing status
The API processes your file asynchronously. Poll
GET /api/v1/inventory/{uploadId} until status is COMPLETED.4
Handle errors
If the upload fails, the response will include an error message explaining what went wrong.
List your inventories
To see all previously uploaded inventories for your organization, use the list endpoint:Cancel an in-progress upload
If you need to stop an upload that is stillPENDING or PROCESSING, send a cancel request: