Capvant

Submit the lead for matching

post
https://sandbox.capvant.com/partner/v1/leads/{id}/submit
POST
/leads/{id}/submit

Idempotent: a second call does not route the lead again and answers with the same state. Refused whole with 422 when a field the market makes mandatory is missing, naming each one, so you can fix and retry. In the sandbox this matches locally and stops: no funding provider is ever contacted from a sandbox key.

Authorization

AuthorizationBearer <token>

An access token from POST /oauth/token. Valid for one hour. Preferred, because a leaked request log then exposes an hour rather than a permanent credential.

In: header

Path Parameters

id*string

The lead id returned by POST /leads.

Formatuuid

Response Body

application/json

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

Shell
curl -X POST "https://sandbox.capvant.com/leads/497f6eca-6276-4993-bfeb-53cbbbba6f08/submit"
JSON
{  "id": "string",  "reference": "string",  "state": "draft",  "matched_options": 0,  "options": [    {      "product_family": "asset_finance",      "label": "string",      "options": 0    }  ],  "already_submitted": true,  "submitted_at": "string"}