Autional Autional
API Reference GitHub autional.com →

POST /admin/billing/subscription/{tenant_id}/apps/{app_id}/pricing

Configure a separate resource pricing scheme for a specific application of a tenant (each resource type independently priced), overriding default plan pricing. Supports setting included units, unit price and overage unit price.

Billing Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
tenant_id path string Yes Tenant ID
app_id path string Yes Application ID

Request Body

Schema: dto.ConfigureAppPricingRequest

FieldTypeRequiredExampleConstraintsDescription
pricings array of

See dto.AppResourcePricingInputDTO

Yes

Responses

StatusDescriptionSchema
200Application pricing configured successfullydto.AppSubscriptionDetailResponse
400Invalid request parametersobject
401Unauthorizedobject
403No permissionobject
500Internal server errorobject

Referenced Schemas

dto.AppResourcePricingInputDTO

FieldTypeRequiredExampleConstraintsDescription
resource_type string Yes api_calls
included_units integer No 10000
overage_unit_price number No 0.05
unit_label string No times
unit_price number No 0.01

dto.AppResourcePricingResponse

FieldTypeRequiredExampleConstraintsDescription
id string No arp_001
included_units integer No 10000
overage_unit_price number No 0.05
resource_type string No api_calls
subscription_app_id string No sa_001
unit_label string No times
unit_price number No 0.01

dto.AppSubscriptionDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.SubscriptionAppResponse No
message string No
timestamp string No

dto.SubscriptionAppResponse

FieldTypeRequiredExampleConstraintsDescription
app_id string No app_001
created_at string No 2026-04-01T00:00:00Z
id string No sa_001
pricings array of

See dto.AppResourcePricingResponse

No
status string No active
subscription_id string No sub_001
tenant_id string No tnt_xyz789