top of page

Automatically create download permissions for bookings

A) Create download permission without customization.

Prerequisite:
You have created a travel plan with a unique ID. This ID is required to define the travel plan for which a release is to be created and should be known to the external system from which the download release is triggered.

Reiseplan_id_vergeben.png

Creation of the download permission can be done by calling our REST/https service. This example create downloadpermissions for two devices for the trip "234"

  • Replace CCCCCC with the customer ID, you can find this under Account Settings > General Settings > Account ID

  • Replace xxxxxx-xxxxxx-xxxxxx-xxxxxx with the API key, you can find this under Account Settings > General Settings > API Key

curl --location --request POST 'https://services.schneidergeo.com/content/account/CCCCCC/authrelease' \

--header 'Content-Type: application/json' \

--header 'Authorization: xxxxxx-xxxxxx-xxxxxx-xxxxxx' \

--data-raw '[

   {

       "downloadCode": 556677,

       "guidebookExternalId": "234",

       "startdate": "2021-11-19",

       "enddate": "2021-12-31",

       "lang": "en",

       "devices": 2

   }

]'

B) Create download permission with customization.

Prerequisite:

You have previously created the content to be added to the itinerary in a library. In the following example, content from the libraries with the IDs "HOTELS" and "TEXTINFO" is used

hotelbibliothek_anlegen.png

In the following example, the hotel "Zur Post" with the external ID "HPO1" is added to the trip "234" for the customer with the booking number/download code "556678".

​

  • Replace CCCCCC with the customer ID, you can find this under Account Settings > General Settings > Account ID

  • Replace xxxxxx-xxxxxx-xxxxxx-xxxxxx with the API key, you can find this under Account Settings > General Settings > API Key

curl --location --request POST 'https://services.schneidergeo.com/content/account/CCCCCC/authrelease' \

--header 'Content-Type: application/json' \

--header 'Authorization: xxxxxx-xxxxxx-xxxxxx-xxxxxx' \

--data-raw '[

   {

       "downloadCode": 556678,

       "guidebookExternalId": "234",

       "startdate": "2020-11-19",

       "enddate": "2020-12-31",

       "lang": "en",

       "devices": 2,

       "additionalAssets": [

           {

               "type":"GEO",

               "externalId":"HPO1",

               "libraryExternalId":"HOTELS"

           }

       ]

 

   }

]'

bottom of page