Partner setup
Create and manage sub-organisations, configure groupings, and go live as a Thrust Carbon partner.
Partner accounts are restricted
Please contact your account manager for access.
Partner accounts give you the ability to create and manage other Thrust Carbon organisations. Further more, organisations can be nested within sub-organisations to create sub-sub-organisations.
An organisation has access to the data of all its descendant organisations, and is responsible for any billing charges incurred by those descendants.
Getting started as a partner
This first-steps and sub-account setup sequence is shared by both the Travel management companies and Online booking tools integration guides.
First steps and authentication
Visit your Thrust Carbon account (https://app.thrustcarbon.com).
Set up a user account for each developer. You can do this by navigating to the 'Account' menu, and selecting 'Organisation Settings'.
Discover your API credentials. You can do this by navigating to the 'API' menu, and selecting 'Credentials'.
Read the Authentication Guide.
Set up sub-accounts for each client
Once you are confident with how partner accounts work, you should:
Send a request to add a new sub-organisation for each client. Click here to read more about this API request.
Save the returned id in your database, as this refers to your client within our system.
Add the organisation_id parameter, containing the above id, to future requests when you add each client's data.
We also suggest that you configure any custom-fields/client-defined-fields so that they can be incorporated into your client data:
To configure a client defined field, pass the field name to the grouping types endpoints.
Save the returned slug you receive when setting up the client defined field.
Pass that slug with any field values into Thrust Calculator segments — see Configure grouping types below.
Using the partner API
Use endpoints as another organisation
To act as another organisation, take the organisation's ID and pass it into your request under the organisation_id key.
Note: to keep the documentation simple for non-partner users, we have not included examples using 'organisation_id' outside of this page. However please note that all Thrust Carbon API endpoints accept the organisation_id key, allowing you to act as those organisations.
Create new organisations
- You can create new organisations:
- Using your Thrust Carbon account settings panel
- Using the API.
Creating further embedded organisations
If you wish to create a organisation below another organisation (e.g. a sub sub organisation), then you just need to pass in the organisation_id of the new organisation's parent (see the 'Use endpoints as another organisation' documentation below).
For example: lets suppose you have the following organisations:
Parent organisation (ID: ABC)
-> Sub organisation (ID: EFG)You would create a new organisation under the sub-organisation by passing in an organisation_id equalling EFG, to create the following hierarchy:
Parent organisation (ID: ABC)
-> Sub organisation (ID: EFG)
-> -> Sub sub organisation (ID: IJK)Configure grouping types (e.g. client-defined/custom fields)
Groupings enable the Thrust Calculator to generate reports for a specific grouping of data. Examples include:
- Viewing the effect of emissions from different trip purpose codes (e.g. the proportion of emissions from internal vs external meetings).
- Proportion of emissions from different cost centres.
- Understanding the emissions created at different Points of Sale.
To use groupings, you first need to setup the grouping type for each grouping. You should save the slug you are given from each grouping type you have setup.
Once these have been setup, you can pass the grouping with each request. For example, a Thrust Calculator segment payload might look like this:
{
"type": "air",
"locations": ["LHR", "JFK"],
"travel_class": "business",
"groupings": {
"default": ["MARKETING"],
"cost-centre": ["12345"],
"point-of-sale": ["EU"],
"trip-purpose": ["INTERNAL MEETING"]
}
}Go-Live Checklist
- Sub-account:
- Your existing clients have been setup in Thrust Carbon, and the returned
organisation_idfor each client has been saved on your system. - New clients get setup in Thrust Carbon as a sub-organisation, and the returned
organisation_idis saved on your system. - When clients are updated on your system (e.g. client name changes), these changes are updated in the Thrust Carbon system.
- Your existing clients have been setup in Thrust Carbon, and the returned
- Grouping-type:
- You existing clients have all their grouping types setup in the Thrust Carbon system, and the returned
slugfor each grouping type was saved in your system. - When a new client is added to your system, their grouping types are saved in the Thrust Carbon system, and the returned
slugfor each grouping type is saved in your system. - When a change is made on your system that will affect a grouping type (e.g. change in the name you use on your system), you update the grouping type on the Thrust Carbon system.
- You existing clients have all their grouping types setup in the Thrust Carbon system, and the returned
- Requests made as the client:
- When you make requests to Thrust Carbon APIs (e.g. to the Thrust Calculator, Thrust Engage or Thrust Offset APIs), you are passing in the relevant organisation's
organisation_idandproject_id. - When you add segments to the Thrust Calculator API, you pass in the
groupingsdata. - If an added segment has a related cancellation, then you use the delete segment endpoint to remove the cancelled segment
- If an added segment has a related exchange, then you use the delete segment endpoint to remove the exchanged segment, and replace it with the updated segment
- When you make requests to Thrust Carbon APIs (e.g. to the Thrust Calculator, Thrust Engage or Thrust Offset APIs), you are passing in the relevant organisation's
Need Help?
The Thrust Carbon team is always here to help. We would be delighted to host workshops or advisory calls with your technical team to help them integrate with the Thrust Carbon system. Please contact your account manager or hello@thrustcarbon.com