v2.4.2

marketplace

Marketplace utility endpoints for IP echo, colour normalisation, phone validation, click-to-call, finance, and insurance quotes.

FieldValue
Serverless servicedrive-api-marketplace
Runtimenodejs22.x, arm64
Regionap-southeast-2
Deployed HTTP operations8
Local worker harnesses0
OpenAPI/openapi/marketplace.yaml · interactive

Deployed routes

MethodPathAuthSummary
GET/marketplace/echoip/API keyEcho caller IP
GET/marketplace/colours/API keyNormalise exterior colour (cached)
POST/marketplace/colours/API keyNormalise exterior colour via drive-ai LLM
GET/marketplace/validate/phoneAPI keyValidate phone number (Telesign)
POST/marketplace/clicktocall/enabledPublicCheck whether a dealer is configured for click-to-call
POST/marketplace/clicktocall/PublicInitiate a Freespee click-to-call
POST/finance/quotePublicStratton Finance secured-loan quote
GET/insurance/quotePublicBudget 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/
Esc