Skip to content

Trade-ins

A trade-in is a trade-in plan (trade_in_plans): the customer’s car and what they want to do with it. Valuers’ offers are valuations (trade_in_valuations) on the plan.

query TradeIn($id: uuid!) {
trade_in_plans_by_pk(id: $id) {
id
stage
created_at
year
make
model
badge
odometer
condition
registration_number
state_of_registration
postcode
customer_full_name
customer_email
customer_phone
customer_comment
instant_valuation
trade_in_valuations(order_by: { value: desc }) {
valuer_name
value
value_low
valuer_comments
created_at
}
}
}
query TradeIns($showroomId: uuid!) {
trade_in_plans(
where: { showroom_id: { _eq: $showroomId } }
order_by: [{ created_at: desc }, { id: asc }]
limit: 50
) {
id
stage
created_at
year
make
model
odometer
customer_full_name
trade_in_valuations_aggregate {
aggregate {
max {
value
}
}
}
}
}
Field Notes
year, make, model, badge, odometer The customer’s car. Odometer in kilometres.
stage Status in the dealer’s process. New plans start as pending.
last_step How far the customer got in the trade-in form.
instant_valuation An automated estimate in cents, when one was given.
trade_in_valuations.value, value_low Valuer offers, in cents.

Like every money value in the API, valuations are in cents: 2650000 is $26,500.