Getting Started

Getting Started

Welcome to the Avis Budget Group (ABG) Developer’s Platform.  With the platform, you can build, test, and deploy applications on ABG's highly-scalable and reliable infrastructure for your web, mobile, and backend solutions.

If you're looking for our White-Label Car Rental Solutions to add to your website, click here.  Otherwise read on!

NOTE: All of the endpoints referenced on this website are executed in our staging or pre-prod environments.  They do not make live, usable reservations for customers. When you're ready, please send us a note so we can get your application launched.

This getting started section will show you how to:

  • Sign Up for Access;
  • Create an Application and get API credentials;
  • Get an Access Token for authenticated use of an API;
  • Use an API with your access token;
  • Find out What’s Next

LET'S GET STARTED!

Step 1: Sign-up for Access

In order to use the APIs, you’ll need to create an account. Upon successful registration, you will be able to access our APIs immediately, in the web-based sandbox or via third-party tools like Postman.

  1. Click SIGN IN/SIGN UP link on the top right of the screen.
  2. In the “Log In” screen, click Sign-Up
  3. Enter your account information, including your name and email address. 
  4. Click Sign-Up.
  5. Check your email for a verification/activation email. 
  6. Click the link in the email to complete the creation of your account.

Step 2: Request Access to APIs

Now that you have an account and a Client Application, you need to Request Access to APIs in our system. The Client Application holds your credentials; the Client ID and Secret that gives you secure access to APIs. You can have multiple Client Apps in your account and each App will have a unique Client ID/Secret combination. In this step, you will add APIs to your Client Application.

(Your Client ID and Client Secret are valid in our sandbox and testing environments. You will need a new Client ID/Secret when you are ready to deploy to our Production environment.)

  1. Make sure you’re logged in.  Click the user profile icon,  profile icon   on the top right of the screen to Log In.
  2. Click on APPLICATIONS in the navigation menu to see Services subscription and create new applications.
  3. Click on Subscription button in last column for the service name that you would like to subscribe access them to through your account.
  4. The state will change to indicate that you are subscribed and button will change from red to blue. Click on Create new application.
  5. Enter application name and description and click‘Create Application’
  6. On the next page you will see that the Application was successfully created. You will see your Client ID and Client Secret. You will need these later so copy them. You can also access later through this page.
  7. Enter redirect URL for OAuth
  8. Click Submit when finished

Step 3: Get an Access Token

We use OAuth 2.0 over SSL to secure our APIs.  You need to exchange your Application’s Client ID and Client Secret for a User Access Token. This Token is required every time you use one of our APIs. (You can retrieve the Client ID and Client Secret for your Client Applications from the Dashboard.) A User Access Token will be active for 7199 seconds (that's about 2 hours).

Getting an Access Token is easy.  Here’s an example using cURL:

curl -X GET \
  https://stage.abgapiservices.com/oauth/token/v1 \
  -H 'client_id: 7bc7af29041645fe80aa5d16e71876e5' \
  -H 'client_secret: 7bc7af29041645fe80aa5d16e71876e5'

 

A valid response with your access token looks like this:

{
   "access_token":"eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJwem5vRHdsYlNUcmFwM2FTQzdSUUl3anpzb2NJWGlaTUQ2cUxBakh5X0NVIn0.eyJqdGkiOiI5MjVjN2MxNS05ODY0LTQzZWMtODJjMS04NDU5ZTVjZTk4NzUiLCJleHAiOjE1OTI1MTMxNjcsIm5iZiI6MCwiaWF0IjoxNTkyNTA2MDI3LCJpc3MiOiJodHRwczovL3Nzby1zc28uYXBwcy5hcGktbnAuYWJnYXBpc2VydmljZXMuY29tL2F1dGgvcmVhbG1zLzNzY2FsZS1zdGFnaW5nLWFwaS1vaWRjIiwiYXVkIjoiYWNjb3VudCIsInN1YiI6Ijc4MjFkZmFmLTc0ZGEtNDZiMy1iNjExLTVkMjE3MjI5NzA2NyIsInR5cCI6IkJlYXJlciIsImF6cCI6IjVjMzM1NzllIiwiYXV0aF90aW1lIjowLCJzZXNzaW9uX3N0YXRlIjoiMDJiNTM4ZDMtOGEyNC00N2NjLTllZmMtMTk2NzQ2YTQ1OTk2IiwiYWNyIjoiMSIsInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJvZmZsaW5lX2FjY2VzcyIsInVtYV9hdXRob3JpemF0aW9uIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoiZW1haWwgcHJvZmlsZSIsImNsaWVudEhvc3QiOiIxOC4yMjUuMTIuMjE2IiwiY2xpZW50SWQiOiI1YzMzNTc5ZSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LTVjMzM1NzllIiwiY2xpZW50QWRkcmVzcyI6IjE4LjIyNS4xMi4yMTYifQ.IYd8yPmmBUPfKCE3FzZa1GKY6IB6Mx2ePC_Cc1nGcNPeEQLQ_bTjbdaBV3_SIM5NV4Dz-Jueese6PFCT3szDDxnFcustdieRVFfNW7yohMNO9p26f4mDkrT18dKgfErFIs13drj3LBKtrnawx2loidIdk2-LYH-f6pAdYbfZtT_SDtgeDIwoDozpB5pv0vBRZYvOuXDIY8Xw-sc9l2ewe-29SvXYYFPuFrF7l9NSXeBvD_VNf-iHPr9oG1DQF4JJ0Kl8_NFjw7ZPAyaB52U27aGWXoSLVcHQbF3Sq0smBV_v943JKJ7fKL2kvFlYOgkQCYtJRHzo_OrnwIhyxZdNbg",
   "token_type":"Bearer",
   "expires_in":7140
}

 

If you did something wrong with your request, you'll get an error similar to this:

{
   "status":{
      "request_time":"2018-07-04T13:05:10Z",
      "request_errors": 1,
      "errors":[
         {
            "code":"400",
            "message":"Bad Request",
            "reason": "invalid_request",
            "details": "Invalid credentials were provided in the request."
        }
      ]
  }
}

 

If your credentials were invalid or expired, you'll get an error that looks like this:

{
   "status":{
      "request_time":"2018-10-06T15:30:38Z",
      "request_errors": 1,
      "errors":[
         {
            "code":"401",
            "message":"Unauthorized",
            "reason":"authentication_failure",
            "details":"Missing or expired credentials were provided in the request."
         }
      ]
   }
}

 

Step 4: Use an API

Once you have an Access Token, you’re all set to make an API request. All ABG APIs require an Access Token to be passed in the Authorization header of your request. 

Here’s a cURL example of the Car Locations API using the Access Token:

curl -X GET \
'https://stage.abgapiservices.com/cars/locations/v1/?country_code=US&brand=Avis&keyword=Denver' \
  -H 'client_id: 7bc7af29041645fe80aa5d16e71876e5' \
  -H 'Authorization: Bearer pehz7c0EpapbCW7wDG2TefeSPXh0'

 

Step 5: What's Next

There’s a lot to explore in the Developer’s Portal:

  • Check out the Docs section for a look at all the APIs that are available to you.  The Rental Cars section provides details on how to use the APIs for the service that we’re most known for!
  • Review the Guides section to get a better understanding of our API design approach
  • Send us a message from the Contact Us page if you have any issues.