AlphaAlpha Docs
API ReferenceBilling admin

Create or update tenant billing config

Create or update the billing configuration for a specific tenant

POST
/billing/admin/tenants/{tenantId}/config
AuthorizationBearer <token>

In: header

Path Parameters

tenantId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/billing/admin/tenants/string/config" \  -H "Content-Type: application/json" \  -d '{    "billingPlanId": "string",    "billingTenantId": "string",    "targetTenantId": "string"  }'
{
  "active": true,
  "billingPlanId": "string",
  "billingStartDate": "2019-08-24",
  "billingTenantId": "string",
  "clientId": "string",
  "created": "2019-08-24T14:15:22Z",
  "id": "string",
  "invoiceDay": 0,
  "lastBilledDate": "2019-08-24",
  "notes": "string",
  "overrideBaseMonthlyFee": 0.1,
  "overrideCostPerExtraGb": 0.1,
  "overrideCostPerExtraUser": 0.1,
  "overrideIncludedStorageGb": 0.1,
  "overrideIncludedUsers": 0,
  "overrideModulesPricing": {
    "property1": 0.1,
    "property2": 0.1
  },
  "targetTenantId": "string",
  "updated": "2019-08-24T14:15:22Z"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}