Skip to content
Справочник APIPlatformPlatform billing

Live-probe stored vendor credentials against the vendor API

Эта страница пока доступна только на английском языке. Руководства переведены; автоматически генерируемый справочник API публикуется на английском.

POST
/platform/v1/billing/vendors/{vendor_type}/verify-credentials

Makes a cheap authenticated round-trip to the vendor (Apple requestTestNotification) to confirm the stored per-tenant credentials actually work. Persists the result on last_health_check_at / last_health_error. Fails loud (400) when no config exists — never a platform/global fallback.

Authorization

bearer_auth
AuthorizationBearer <token>

In: header

Path Parameters

vendor_type*string

stripe | apple | google_play | cloud_payments

Header Parameters

X-Project-Id*string

UUID of the project that scopes consumer accounts, devices, sessions, and VSpaces for the request.

Formatuuid

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/platform/v1/billing/vendors/string/verify-credentials" \  -H "X-Project-Id: 11111111-1111-1111-1111-111111111111"
{  "error": "string",  "ok": true}
{  "detail": "Pool slug must be unique.",  "instance": "urn:forestvpn:trace:a1b2c3d4",  "title": "Validation Error",  "type": "https://fvpn.net/errors/validation"}
{  "detail": "Pool slug must be unique.",  "instance": "urn:forestvpn:trace:a1b2c3d4",  "title": "Validation Error",  "type": "https://fvpn.net/errors/validation"}