Capvant

Sync customers in bulk

post
https://sandbox.capvant.com/partner/v1/customers/bulk
POST
/customers/bulk

Send customer.became_eligible for customers who are likely on their very first answer. Off by default, so a first sync of your whole book does not flood your endpoint.

Upsert up to 500 businesses from your book. Each gets an eligibility answer now (UK companies with a company number, when eligibility is switched on for your account) and again when its next check is due. Subscribe to customer.became_eligible to hear when one becomes likely to qualify, instead of guessing who to tell.

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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Up to 500 businesses per call. Upserts by partner_customer_id. Businesses only: no people, no personal numbers.

Response Body

application/json

application/problem+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/customers/bulk" \  -H "Content-Type: application/json" \  -d '{    "customers": [      {        "partner_customer_id": "string",        "country": "GB"      }    ]  }'
JSON
{  "object": "customer_sync",  "received": 0,  "created": 0,  "updated": 0,  "eligibility_enabled": true,  "results": [    {      "partner_customer_id": "string",      "band": "likely"    }  ]}