How B Scrap works
B Scrap is built so a price does not depend on who picks up the phone. The scrap number is kerb weight, multiplied by the rate per tonne in the rates file, adjusted for condition, a catalyst, alloys, and a distance rule based on the outward postcode. The European number is the city's precomputed road kilometres, the crossing the routing model selected, the UK leg to the drop-off, and the recovery half of the same file.
You can change either half by editing src/data/rates.json and rebuilding, or by setting RATES_URL to a JSON file with the same shape. The quote API re-reads a remote file every ten minutes, so a hosted rate card can move without a person retyping figures into a page. The static city pages pick up the file on the next build. A weekly Vercel cron can fire a deploy hook for that, which is documented in the README and does not depend on GitHub or Origin.
A registration is stored with the enquiry. If DVLA_API_KEY is set, the server calls the Vehicle Enquiry Service and attaches make, year and fuel. That API does not return kerb weight for a car, so the kilogram box remains the scrap input. If the key is absent, nothing is looked up and the form still prices.
Sending the form posts to /api/lead. The function recomputes the band on the server so a tampered browser figure is not what gets emailed. It then POSTs the payload to LEAD_WEBHOOK_URL if you set one, and sends two Resend emails if RESEND_API_KEY, EMAIL_FROM and NOTIFY_EMAIL are set: one to you, one to the customer. If neither path is configured, the response says so and still returns the band and a reference. No lead is silently discarded without that being visible.
A collection slot is a date and a window, generated from src/data/slots.json: how many days ahead, how many days of lead time, which weekdays are closed, and the labels of the windows. The browser offers those options. The server rejects a date that is not in the set. The request travels down the same webhook and email path. It is a request. We confirm it against the actual round. There is no private database pretending two people cannot book the same hour.
WhatsApp is a click, not a second system. After the band is known, the button opens a chat with the figure, the postcode and the vehicle already in the message. The number is PUBLIC_WHATSAPP_NUMBER. Until you set it, the link shows the placeholder.
On the day, we need the keys or a written authority, a person who may release the car, and a point a rigid truck can use. Finance has to be cleared or the lender has to agree. A personalised plate should be retained first. In the UK the Authorised Treatment Facility issues the Certificate of Destruction and tells DVLA. Abroad, a local destruction paper is not that certificate. The keeper uses the GOV.UK export or destroyed-abroad route, which the country pages spell out.
Distances on the city pages are straight-line kilometres adjusted by a terrain factor, plus a crossing time, a typical wait for that sailing, and rest breaks split by the Channel so a short UK leg is not glued onto a French drive before the daily limit is applied. They are planning numbers. The confirmed quote names the crossing, the drop-off and the price. Metal prices and ferry space move. The rate card is how you move them without rewriting five thousand pages by hand.
Questions
Is the online figure a quote?
It is an indicative band from the published rate card. The message we confirm in writing is the quote.
Do I have to phone?
No. The form prices the job and sends it. Phone and WhatsApp are there if you would rather talk.