Partner update

The API allows customers to update their partner's inventory through two different sources:

CSV Source: Upload and process a CSV file with hotel data. Requires file upload and header position parameters.

Connector Source: Pull data directly from a connector. No file upload or header parameters needed.

This API also provides the option to automatically run mapping for all active partners.

To experiment this API call, use the following sandbox API key:

88cd7ff1-e3af-4377-a5b0-38a4b483e92f

Body Params
string

The ID of the partner to update

string
enum

Source of the inventory data. 'csv' for file upload, 'connector' for direct connector integration

Allowed:
string

hotel code position in your csv (starting from position 0) (Required when source is 'csv', ignored when source is 'connector')

string

hotel name position in your csv (starting from position 0) (Required when source is 'csv', ignored when source is 'connector')

string

hotel address position in your csv (starting from position 0) (Required when source is 'csv', ignored when source is 'connector')

string

hotel city position in your csv (starting from position 0) (Optional when source is 'csv', ignored when source is 'connector')

string

hotel country position in your csv (starting from position 0) (Required when source is 'csv', ignored when source is 'connector')

string

hotel latitude position in your csv (starting from position 0) (Recommended when source is 'csv', ignored when source is 'connector')

string

hotel longitude position in your csv (starting from position 0) (Recommended when source is 'csv', ignored when source is 'connector')

string

hotel city id position in your csv (starting from position 0) (Optional when source is 'csv', ignored when source is 'connector')

string

hotel chain position in your csv (starting from position 0) (Optional when source is 'csv', ignored when source is 'connector')

string

hotel type position in your csv (starting from position 0) (Optional when source is 'csv', ignored when source is 'connector')

string

hotel stars position in your csv (starting from position 0) (Optional when source is 'csv', ignored when source is 'connector')

string

hotel postal code position in your csv (starting from position 0) (Optional when source is 'csv', ignored when source is 'connector')

file

Partner CSV file (Required when source is 'csv', not needed when source is 'connector')

string
Defaults to 0

boolean value (0 or 1) 1 : upload inventory and run mapping on all active mappings with same model

boolean
Defaults to false

boolean value (true or false) true :Run the mapping only on the newly added hotels from your inventory using the opportunities list from the previous mapping

string
Defaults to update

string value (add or update) : Choose 'update' to replace the existing hotels or 'add' to keep the existing hotels and add your file on top of it

Headers
string
required

API key for authentication

Responses

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json