Create Customer
Create a new customer organization.
Endpoint
POST /api/v3/reseller/customers
Request
{
"name": "Acme Corporation",
"email": "admin@acme.com",
"plan": "gold",
"quota_minutes": 10000,
"metadata": {
"industry": "healthcare",
"account_manager": "john@reseller.com"
}
}
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Organization name |
email | string | Yes | Admin email |
plan | string | Yes | Plan: bronze, silver, gold, enterprise |
quota_minutes | integer | No | Custom minute quota |
metadata | object | No | Custom metadata |
Response
Status: 201 Created
{
"id": 123,
"name": "Acme Corporation",
"email": "admin@acme.com",
"plan": "gold",
"quota_minutes": 10000,
"status": "active",
"api_key": "sk_live_abc123...",
"created_at": "2025-01-17T10:00:00Z"
}
Examples
cURL
curl -X POST https://api.scriptix.io/api/v3/reseller/customers \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Corporation",
"email": "admin@acme.com",
"plan": "gold"
}'
Python
response = requests.post(
'https://api.scriptix.io/api/v3/reseller/customers',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
json={
'name': 'Acme Corporation',
'email': 'admin@acme.com',
'plan': 'gold',
'quota_minutes': 10000
}
)
customer = response.json()
print(f"Customer ID: {customer['id']}")
print(f"API Key: {customer['api_key']}")