Make sure to always keep your client credentials safe. Do not include client credentials in client side code (smartphone app, web application), as they could easily be extracted and misused. If you think your credentials have been compromised, contact RABOT to invalidate the credentials and get a new secret.
2
Authenticate using the OAuth 2.0 flow
See our guide for reference. Ensure you have the correct scopes!
Authentication
API authentication & Scopes
3
Query your available Tariffs
As a Sales Affiliate partner using our API, you must first query the tariffs available to your API client in order to generate price quotes and submit orders.
Parse the GET response by deserializing the returned collection of tariff objects and mapping the relevant pricing and tariff attributes to your internal quote or order model.
Store the tariffKey for usage in further API calls, it is a key parameter for generating a quote and submitting an order
5
Calculate a price quote
Using your tariffKey, the lead’s postcode and estimated consumption, make a POST call to generate a price quote
Once your lead has accepted the offer and you’ve collected, validated and stored all order data required for order submission, you are ready to submit the order via the POST /orders endpoint!
Parse the response by deserializing the returned customerNumber and contractNumber and persisting these identifiers in your internal order and customer management systems
Store the customerNumber and contractNumber for usage in further API calls, it is a key parameter for calls the customers, contracts, metrics and documents endpoints
8
Query the Order Status
Your order has been submitted and is now undergoing validation by RABOT’s platform. Once validated, the order will enter the change process, where communication between energy market partners takes place to locate and process the energy supply request.You can poll our API to track your submitted orders’ status.
Congratulations! You’ve made your submitted and queried the status of your first order as an official RABOT Sales Affilliate Partner.Browse our API endpoints