Skip to main content

List Resellers

GET /v1/accounts/{accountId}/resellers

Returns a list of resellers for the specified account.

Path Parameters

ParameterTypeRequiredDescription
accountIdstringYesThe account ID

Query Parameters

ParameterTypeDescription
external_idstringFilter by external ID

Example Request

curl "https://api.telzino.com/v1/accounts/account-123/resellers" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Example Response

{
  "data": [
    {
      "id": "reseller-123",
      "account_id": "account-123",
      "name": "Test Reseller",
      "external_id": "external-reseller-123",
      "created_at": "2024-01-15T10:30:00Z"
    }
  ]
}

Create Reseller

POST /v1/accounts/{accountId}/resellers

Creates a new reseller for the specified account.

Path Parameters

ParameterTypeRequiredDescription
accountIdstringYesThe account ID

Request Body

FieldTypeRequiredDescription
resellerNamestringYesName of the reseller
external_idstringNoExternal identifier for integration

Example Request

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"
  }'

Example Response

{
  "id": "reseller-abc123",
  "account_id": "account-123",
  "name": "Test Reseller",
  "external_id": "external-reseller-123",
  "created_at": "2024-01-15T10:30:00Z"
}