Rental Car Manager has embarked on a major infrastructure upgrade, and part of this involved moving our systems off our legacy servers.
Note: This article is for developers for a Rental Car Company's own booking website. If you are a developer for a Booking Agency please click here
SUMMARY OF CHANGES:
API URL structure is changing:
E.g. From: https://<old_server_domain>/api/3.2/<method>/<key>
To: https://apis.rentalcarmanager.com/booking/v3.2/<method>/<key>?apikey=<key>
Where RCM standard web steps are being used, it is even simpler as these only call the “main” method:
From: https://<old_server_domain>/api/3.2/main/<key>
To: https://apis.rentalcarmanager.com/booking/v3.2/main/<key>
EXAMPLE OF PROCESS TO FOLLOW:
SAMPLE 1 BEFORE (step1mini.aspx calling “main” method):
<script src='<%=ConfigurationManager.AppSettings("ServerUrl")%>/api/3.2/main/<%= ConfigurationManager.AppSettings("APIKey")%>' type="text/javascript"></script>
SAMPLE 1 AFTER:
<script src='https://apis.rentalcarmanager.com/booking/v3.2/main/<%=ConfigurationManager.AppSettings("APIKey")%>' type="text/javascript"></script>
SAMPLE 2 BEFORE (direct calling any method other than “main”):
https://secure2.rentalcarmanager.com/api/3.2/TEST_KEY_HERE
SAMPLE 2 AFTER:
https://apis.rentalcarmanager.com/booking/v3.2/TEST_KEY_HERE?apikey=TEST_KEY_HERE
SUMMARY OF CHANGES:
API URL structure is changing:
E.g. From: https://<old_server_domain>/api/3.1/<key>/<method>/<params>
To: https://apis.rentalcarmanager.com/booking/v3.1/<key>/<method>/<params>?apikey=<key>
Where RCM standard web steps are being used it is even simpler, as it only calls the “main” method:
From: https://<old_server_domain>/api/3.1/main/<key>
To: https://apis.rentalcarmanager.com/booking/v3.1/main/<key>
EXAMPLE OF PROCESS TO FOLLOW:
SAMPLE 1 BEFORE (step1mini.aspx calling “main” method):
<script src="https://secure20.rentalcarmanager.com.au/api/3.1/main/<%=tst("Key")%>" type="text/javascript"></script>
SAMPLE 1 AFTER:
<script src="https://apis.rentalcarmanager.com/booking/v3.1/main/<%=tst("Key")%>" type="text/javascript"></script>
SAMPLE 2 BEFORE (direct calling step2 method):
SAMPLE 2 AFTER:
TROUBLESHOOTING
Access Denied
If you receive an error Http Status 401 or "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." please try the following:
1. Make sure you've included apikey=XYZ on your querystring (where XYZ is your key).
2. Make sure the apikey value is not encoded in any way. For e.g. if you have a "=" in your key, you must use "=" and not "%3D". If this is not possible, please see Alternative Subscription Key method below.
Alternative Subscription Key
Where it is not possible to add apikey=XYZ to the URL, you can use the Request Headers instead. Add a new Request Header named "Ocp-Apim-Subscription-Key", and add your API Key as the value.