Add Users, Passengers, Flights

The Blink Travel API allows developers add a new user, add passengers for that user and to ‘Blink’ a flight. The API is designed to allow developers easily integrate and add the Blink functionality to their own websites and/or apps.
The step by step guide below shows how to create a new user in the Blink platform, add flights and trips for the user.

INSTRUCTIONS

Use the following steps to get started :

  1. Before using the API, you must first login to retrieve an Admin Access Token.
  1. These credentials are supplied by the Blink Team and must be passed in the body of the call.
  1. If the credentials are correct an access token will be returned in the response.  The access token will be required for subsequent calls to the API so it must be stored for later use.
  1. Create a new user (you must pass the access token in the Authorization header)
  1. If your users will have their own user and password to access the blink services use the Register call
  1. OR, If your application will manage the user’s access (your users will NOT have a user and password) then use the create call below (note: password is not included in the body)
  1. A sample expected response is below:
  1. Add a passenger to the user’s account.
  1. This passenger may be the main account holder or another person that is entitled to service.
  1. Expected Response
  1. Create a Payout Method
  1. This payout method can be used to transfer funds to the passenger if their flight is disrupted
  1. Expected Response
  1. Blink A Flight
  1. This call will commence monitoring of the flight and will notify the user if the flight is disrupted
  1. Expected Response