Overview
The Reseller & Agent Management API allows you to:
create and manage resellers via API
create and manage agents under a specific reseller
update individual fields using
PATCHfully automate reseller and agent setup workflows
This is useful if you:
sync resellers from an external CRM or ERP
automate onboarding of new partners
maintain reseller data consistency across systems
Authentication & Base URL
The Reseller & Agent Management API is part of the Ventrata Dashboard API and requires a Backoffice-mode API connection.
Required Headers
All requests to the Reseller & Agent Management API must include the following headers:
Header | Purpose |
| Authenticates the request |
| Indicates JSON payload |
| Confirms enabled capability |
Base Path
All endpoints described in this article are prefixed with:
/ventrata/dashboard
Authentication Example
Include the API token in the Authorization header of each request:
Authorization: Bearer YOUR_API_TOKEN
📒 NOTE
You can find your API token in the Backoffice-mode connection detail next to API Key. Click the eye icon to reveal the token, then copy and paste it in the Authorization header of your request.
API Key
❗️IMPORTANT
Your API Key is a confidential credential that provides access to your Ventrata account. Never share it with anyone over chat or email.
Resellers
Reseller Endpoints
Method | Endpoint |
|
|
|
|
|
|
|
|
|
|
📒 NOTE
The PATCH endpoint supports partial updates. Only the fields included in the request body will be updated. All other fields remain unchanged.
Example PATCH curl request
Example PATCH curl request
curl -X PATCH "https://api.ventrata.com/octo/ventrata/dashboard/resellers/:resellerId" \
-H "Authorization: Bearer YOUR_DASHBOARD_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Octo-Capabilities: ventrata/dashboard" \
-d '{
"creditLimit": 500000,
"tags": ["OTA", "VIP"]
}'
Supported Fields (POST/PATCH)
The following fields are supported when creating or updating a reseller:
active
name
reference
tags[]
creditLimit
defaultCurrency
availableCurrencies[]
settlementMethods[]
billingAccountCode
billingCustomerCode
billingStreetAddress
billingCity
billingCompany
billingCompanyNumber
billingCompanyTaxOffice
billingPostalCode
billingCountry
billingContact.fullName
billingContact.emailAddress
billingContact.phoneNumber
📘 EXAMPLE
Example JSON payload
Example JSON payload
{
"active": true,
"name": "Viator",
"reference": "VIA",
"tags": ["OTA"],
"creditLimit": 1000000,
"defaultCurrency": "USD",
"availableCurrencies": ["USD", "GBP", "EUR"],
"settlementMethods": ["VOUCHER"],
"billingCompany": "Viator Inc",
"billingCompanyNumber": "GB123456789",
"billingStreetAddress": "123 Example Street",
"billingCity": "London",
"billingPostalCode": "EC1A 1AA",
"billingCountry": "GB",
"billingContact": {
"fullName": "Accounts Payable",
"emailAddress": "[email protected]",
"phoneNumber": "+44 20 0000 0000"
}
}
Agents
Agents are always managed within the context of a reseller.
Agents are returned as part of reseller
GETresponses under the agents fieldEach agent has a unique id
Use
agents[].idas:agentIdfor updates or deletion
Agents Endpoints
Method | Endpoint |
|
|
|
|
|
|
📒 NOTE
The PATCH endpoint supports partial updates. Only the fields included in the request body will be updated. All other fields remain unchanged.
Example PATCH curl request
Example PATCH curl request
curl -X PATCH "https://api.ventrata.com/octo/ventrata/dashboard/resellers/resellerId/agents/:agentId" \
-H "Authorization: Bearer YOUR_DASHBOARD_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Octo-Capabilities: ventrata/dashboard" \
-d '{
"active": false,
"tags": ["VIP", "Temporary"]
}'
Supported Fields (POST / PATCH)
active
name
reference
tags[]
emailAddress
phoneNumber
📘 EXAMPLE
Example JSON payload
Example JSON payload
{
"active": true,
"name": "Jane Doe",
"reference": "JDOE",
"tags": ["VIP"],
"emailAddress": "[email protected]",
"phoneNumber": "+1 555 000 0000"
}
Automatic Agent Welcome Email
When an agent is created via the API, the agent welcome email is automatically sent.
This behaviour is identical to creating an agent via the Dashboard UI.
Create Backoffice-Mode Connection
You must create a Backoffice-mode connection to generate an API token with access to dashboard endpoints.
📗 TIP
If you are already using the Reporting & Export API, you can reuse the same connection and token, as long as it is a Backoffice-mode connection.
In your Ventrata Dashboard, go to Connections > Connections.
Connections
Press the + New Connection button.
New Connection
In the Partner gallery, press the + New Connection link in the far right.
You do not need to select a partner.
New Connection
Give the connection a descriptive name.
Name
Select 'Backoffice' mode.
Backoffice Mode
Make sure the connection has both 'Read' and 'Write' permissions.
Permissions
Press the Create Octo Connection button.
Create Octo Connection
Create Reseller
Open the connection. In the API Key field, you will find your authentication token.
API Key
Paste the following curl request into your terminal emulator.
curl -X POST "https://api.ventrata.com/octo/ventrata/dashboard/resellers" \
-H "Authorization: Bearer YOUR_DASHBOARD_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Octo-Capabilities: ventrata/dashboard" \
-d '{
"active": true,
"name": "Viator",
"reference": "VIA",
"tags": ["OTA"],
"creditLimit": 1000000,
"defaultCurrency": "USD",
"availableCurrencies": ["USD", "GBP", "EUR"],
"settlementMethods": ["VOUCHER"],
"billingCompany": "Viator Inc",
"billingCompanyNumber": "GB123456789",
"billingStreetAddress": "123 Example Street",
"billingCity": "London",
"billingPostalCode": "EC1A 1AA",
"billingCountry": "GB",
"billingContact": {
"fullName": "Accounts Payable",
"emailAddress": "[email protected]",
"phoneNumber": "+44 20 0000 0000"
}
}'Replace:
YOUR_DASHBOARD_API_TOKENwith your API Key from your Backoffice-mode connection
Run the request.
Go back to your Ventrata dashboard and refresh your dashboard page. The newly created reseller account is immediately visible.
Create Agent
Open the connection. In the API Key field, you will find your authentication token.
API Key
Paste the following curl request into your terminal emulator.
curl -X POST "https://api.ventrata.com/octo/ventrata/dashboard/resellers/:resellerId/agents" \
-H "Authorization: Bearer YOUR_DASHBOARD_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Octo-Capabilities: ventrata/dashboard" \
-d '{
"active": true,
"name": "Jane Doe",
"reference": "JDOE",
"tags": ["VIP"],
"emailAddress": "[email protected]",
"phoneNumber": "+1 555 000 0000"
}'Replace:
YOUR_DASHBOARD_API_TOKENwith your API Key from your Backoffice-mode connection:resellerIdwith the reseller ID, access through the reseller detailReseller ID
Run the request.
Go back to your Ventrata dashboard and refresh your dashboard page. The newly created agent is immediately visible.











