marketplace
Marketplace utility endpoints for IP echo, colour normalisation, phone validation, click-to-call, finance, and insurance quotes.
| Field | Value |
|---|
| Serverless service | drive-api-marketplace |
| Runtime | nodejs22.x, arm64 |
| Region | ap-southeast-2 |
| Deployed HTTP operations | 8 |
| Local worker harnesses | 0 |
| OpenAPI | /openapi/marketplace.yaml · interactive |
Deployed routes
| Method | Path | Auth | Summary |
|---|
| GET | /marketplace/echoip/ | API key | Echo caller IP |
| GET | /marketplace/colours/ | API key | Normalise exterior colour (cached) |
| POST | /marketplace/colours/ | API key | Normalise exterior colour via drive-ai LLM |
| GET | /marketplace/validate/phone | API key | Validate phone number (Telesign) |
| POST | /marketplace/clicktocall/enabled | Public | Check whether a dealer is configured for click-to-call |
| POST | /marketplace/clicktocall/ | Public | Initiate a Freespee click-to-call |
| POST | /finance/quote | Public | Stratton Finance secured-loan quote |
| GET | /insurance/quote | Public | Budget Direct insurance estimate |
Behaviour notes
/marketplace/colours/ uses @caradvice/drive-ai/completion and caches normalised colours in DynamoDB.
/marketplace/validate/phone uses the shared contact-validation library and Telesign-backed validation.
- Click-to-call routes integrate with Freespee; the enabled check can return
404 with success: true when no dealer config exists.
/finance/quote uses Stratton OAuth client credentials and caches access tokens in DynamoDB.
/insurance/quote estimates Budget Direct insurance using Redbook vehiclekey and optional postcode.
Source map
- services/marketplace/serverless.yml
- services/marketplace/functions/
- services/marketplace/types/