curl -X POST "https://api.telzino.com/v1/accounts/account-123/resellers" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"resellerName": "Test Reseller",
"external_id": "external-reseller-123"
}'
const accountId = 'account-123';
const response = await fetch(
`https://api.telzino.com/v1/accounts/${accountId}/resellers`,
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
resellerName: 'Test Reseller',
external_id: 'external-reseller-123'
})
}
);
const reseller = await response.json();
import requests
account_id = 'account-123'
response = requests.post(
f'https://api.telzino.com/v1/accounts/{account_id}/resellers',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={
'resellerName': 'Test Reseller',
'external_id': 'external-reseller-123'
}
)
reseller = response.json()
{
"id": "reseller-abc123",
"account_id": "account-123",
"name": "Test Reseller",
"external_id": "external-reseller-123",
"created_at": "2024-01-15T10:30:00Z"
}
{
"error": "Invalid request data",
"details": [
{
"code": "too_small",
"minimum": 1,
"type": "string",
"inclusive": true,
"exact": false,
"message": "resellerName is required",
"path": ["resellerName"]
}
]
}
Resellers
Create Reseller
Creates a new reseller for the specified account
POST
/
v1
/
accounts
/
{accountId}
/
resellers
curl -X POST "https://api.telzino.com/v1/accounts/account-123/resellers" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"resellerName": "Test Reseller",
"external_id": "external-reseller-123"
}'
const accountId = 'account-123';
const response = await fetch(
`https://api.telzino.com/v1/accounts/${accountId}/resellers`,
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
resellerName: 'Test Reseller',
external_id: 'external-reseller-123'
})
}
);
const reseller = await response.json();
import requests
account_id = 'account-123'
response = requests.post(
f'https://api.telzino.com/v1/accounts/{account_id}/resellers',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={
'resellerName': 'Test Reseller',
'external_id': 'external-reseller-123'
}
)
reseller = response.json()
{
"id": "reseller-abc123",
"account_id": "account-123",
"name": "Test Reseller",
"external_id": "external-reseller-123",
"created_at": "2024-01-15T10:30:00Z"
}
{
"error": "Invalid request data",
"details": [
{
"code": "too_small",
"minimum": 1,
"type": "string",
"inclusive": true,
"exact": false,
"message": "resellerName is required",
"path": ["resellerName"]
}
]
}
Path Parameters
string
required
The account ID to create the reseller under
Request Body
string
required
Name of the reseller
string
External identifier for integration with your systems
This call is idempotent on
external_id. If a reseller with the same
external_id already exists in the account, the existing record is returned with
200 OK and nothing is created; a genuinely new reseller returns 201 Created.
Retrying a request that timed out is therefore safe and cannot produce a duplicate.Where an earlier duplicate left more than one candidate, the record that owns
organizations is returned (oldest first as a tiebreak) — the same record
GET /v1/accounts/{accountId}/resellers identifies via organization_count.Omitting external_id always creates a new record, since there is no identifier to
match on.curl -X POST "https://api.telzino.com/v1/accounts/account-123/resellers" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"resellerName": "Test Reseller",
"external_id": "external-reseller-123"
}'
const accountId = 'account-123';
const response = await fetch(
`https://api.telzino.com/v1/accounts/${accountId}/resellers`,
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
resellerName: 'Test Reseller',
external_id: 'external-reseller-123'
})
}
);
const reseller = await response.json();
import requests
account_id = 'account-123'
response = requests.post(
f'https://api.telzino.com/v1/accounts/{account_id}/resellers',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={
'resellerName': 'Test Reseller',
'external_id': 'external-reseller-123'
}
)
reseller = response.json()
{
"id": "reseller-abc123",
"account_id": "account-123",
"name": "Test Reseller",
"external_id": "external-reseller-123",
"created_at": "2024-01-15T10:30:00Z"
}
{
"error": "Invalid request data",
"details": [
{
"code": "too_small",
"minimum": 1,
"type": "string",
"inclusive": true,
"exact": false,
"message": "resellerName is required",
"path": ["resellerName"]
}
]
}
