Calculate Government Charges
const url = 'https://dashboard.dealerstudio.com.au/api/v1/government_charges/calculate';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"model_variant_id":123,"vehicle_use":"private","interior_colour_id":456,"exterior_colour_id":789,"state":"ACT","vehicle_condition":"new","postcode":"3000","accessories":[101,102]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dashboard.dealerstudio.com.au/api/v1/government_charges/calculate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model_variant_id": 123, "vehicle_use": "private", "interior_colour_id": 456, "exterior_colour_id": 789, "state": "ACT", "vehicle_condition": "new", "postcode": "3000", "accessories": [ 101, 102 ] }'Calculates government charges (registration, CTP, stamp duty, etc.) for a vehicle based on its attributes and jurisdiction. This endpoint is intended for external API consumers and requires API key authentication with the calculate:government_charge permission. Pricing (base_price and dealer_delivery_fee) is automatically calculated from the model variant and selected colours. Optional accessories (IDs linked to the model variant) are summed inc GST into the dutiable value. Vehicle attributes are automatically extracted from the model variant.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Required. ID of the model variant. Vehicle attributes (fuel_kind, seats, year, tare_weight, engine_size_litres, body_type, vehicle_category, etc.) are automatically extracted from the model variant. Base price is calculated from model_variant.dap_min_price + exterior_colour.price + interior_colour.price. Dealer delivery fee is retrieved from model_variant.recommended_dealer_delivery_fee.
Example
123Required. Vehicle use type
Example
privateRequired. ID of the interior colour. The colour price is added to the base price calculation.
Example
456Required. ID of the exterior colour. The colour price is added to the base price calculation.
Example
789Required. Australian state or territory for which to calculate charges
Example
NSWOptional. Vehicle condition. If not specified, defaults to “new”
Example
newOptional. Postcode for jurisdiction-specific calculations (e.g., VIC CTP zones)
Example
3000Optional. Accessory IDs linked to the model variant (accessory_model_variants). Prices inc GST are summed for charge calculations.
Example
[ 101, 102]Responses
Section titled “ Responses ”Government charges calculated with model variant and colours
object
object
Base price (EGC) in dollars, calculated from model_variant.dap_min_price + exterior_colour.price + interior_colour.price
Dealer delivery fee in dollars, retrieved from model_variant.recommended_dealer_delivery_fee
Sum of selected accessories inc GST in dollars (0 when none supplied)
Example
{ "results": [ { "charge_definition_id": 1, "charge_definition_label": "NSW Vehicle Registration", "charge_definition_code": "registration", "charge_definition_jurisdiction": "NSW", "rule_id": 1, "rule_notes": "Standard registration fee", "amount_cents": 10000, "amount": 100, "calculation_method": "static" } ], "base_price": 72995, "dealer_delivery_fee": 1995, "accessories_inc_gst": 0}Unauthorized - API key lacks required permission
object
Example
{ "error": "Invalid or missing API key"}Missing required parameter - state
object
Example
{ "error": "state is required"}