Provision a tenant-scoped sandbox distributor, connect an authorised real-estate security, and verify investor, subscription, wallet, settlement, and signed-webhook behaviour end to end.
Current operating model: distributor, channel, campaign, and credential provisioning is performed by authorised Valuya operations staff in the central control plane. The client supplies approved inputs, receives one-time credentials through the secure channel, implements the integration, and signs off the staging evidence. This is a controlled handoff, not tenant self-service UI.
Understand the distribution boundary
The Distribution API exposes only active campaigns explicitly authorised for the authenticated distributor. It does not provide general access to the tenant database or to securities assigned to another distributor.
The distributor, credential, channel, campaign, tenant, and security must belong to the correct environment.
The tenant and selected security must be active before the campaign is executable.
An unknown or unauthorised UUID returns 404 so callers cannot infer whether another distributor owns it.
The current supported subscription provider is issuer-managed SEPA.
Sandbox access is not approval for production distribution, use of real investor data, or movement of real funds.
Assign owners before configuration
Client product and compliance owner
Approves the distribution use case, investor population, compliance attestation model, security selection, disclosures, and acceptance evidence.
Client integration owner
Implements API authentication, stable identifiers, idempotency, secure data handling, webhook verification, monitoring, and reconciliation.
Valuya operations owner
Creates and activates the distributor, channel, campaign, and scoped credentials; runs readiness checks; and retains control-plane audit evidence.
Security and incident owners
Approve secret exchange, rotation, logging, alerting, breach response, revocation, and production promotion.
Prepare the provisioning request
Provide Valuya operations with one approved request containing:
Distributor legal name, short slug, sandbox contact, technical owner, compliance owner, and incident contact.
Channel key, display name, intended use, and confirmation that its type is External API.
Tenant identifier, tenant security ID, optional tenant asset ID, campaign name, and the client's stable external campaign reference.
Issuer-SEPA subscription-provider confirmation and proposed campaign start/end dates.
Required API scopes, credential owner, expiry date, rotation date, and revocation contact.
Public HTTPS webhook URL, subscribed events, receiver owner, and acceptance-test window.
If the real-estate security remains Draft or In review, Valuya can prepare the distributor and channel, but the campaign cannot be validated as executable or shown in the catalogue until the security is active.
Provision the sandbox control plane
Valuya operations creates the distributor in the sandbox environment and verifies its legal and technical owner.
An authorised operator activates the distributor with a recorded reason.
Operations creates and activates the External API channel.
Once the tenant and security are active, operations creates the campaign and verifies the tenant security in its tenant context.
Operations activates the campaign with a recorded reason and confirms the expected start/end window.
The client calls the securities catalogue and confirms that only the explicitly authorised campaign is returned.
Deactivating a campaign blocks new distributor requests without deleting committed subscriptions. Use deactivation as the normal containment control when distribution must stop.
Issue and protect credentials
Request the minimum scopes needed by each separate integration component:
securities:read
investors:read and investors:write
subscriptions:read and subscriptions:write
webhooks:read and webhooks:write
Valuya issues an environment-bound credential with a recognisable name and approved expiry.
The token is downloaded once and transferred through the approved secret channel.
The client stores it in a server-side secret manager and limits access to the runtime identity and credential custodians.
Record the credential UUID, prefix, scopes, owner, issue/expiry dates, rotation plan, and recipient without recording the token.
Revoke superseded, exposed, unused, or orphaned credentials immediately.
Sandbox tokens begin with vd_sandbox_. Never place a bearer token in a URL, browser or mobile bundle, source repository, ordinary email, screenshot, log, analytics event, or webhook payload.
Sandbox base URL: https://da-staging.valuya.io/api
API version: /v1
Authentication: Authorization: Bearer …
Identifiers exposed by the API are UUIDs.
Collection pagination defaults to 25 and permits 1–100 records per page.
Generate or validate the client from the published OpenAPI 3.1 document. Tolerate additive unknown response properties and pin contract changes through the client's normal dependency-review process.
1. Discover the authorised security
Call GET /v1/securities with securities:read.
Confirm the result contains only the expected active real-estate campaign.
Retain the returned security UUID for investor and subscription requests.
Read the current currency, minimum/maximum amounts, unit price, quantity constraints, and subscription-terms content hash.
Do not cache commercial or legal terms beyond the client's approved refresh policy; re-read them before order acceptance.
2. Resolve the investor and compliance evidence
Call POST /v1/investors with investors:write, the authorised security UUID, and a stable external_investor_id.
Send either a natural-person identity or legal-entity identity and the required email.
Submit current KYC provider/reference and status, verification time, AML, PEP, sanctions, and classification evidence.
Use permitted synthetic identities in staging and apply the agreed retention and privacy controls.
An identical replay resolves the same investor and may refresh compliance evidence; created returns 201, resolved returns 200.
Reusing the external investor ID with different identity facts returns 409. Reconcile the identity—do not generate a new ID to hide the conflict.
Subscription eligibility requires verified KYC, passed AML, clear PEP and sanctions results, and a valid non-future verification timestamp within the configured age limit. Eligibility is checked again when the subscription is created.
3. Create a replay-safe subscription
Generate and persist one unique external_order_id and Idempotency-Key for the intended order.
Submit either amount or quantity, the three-letter currency, and the authorised security and investor references.
Record acceptance of precontractual information, the exact current subscription-terms hash, acceptance time, and a durable evidence reference.
Select the approved wallet mode: provision a supported wallet, provide an attested wallet, or reuse an eligible active wallet.
Persist the returned subscription UUID and retrieve its payment, wallet, and settlement status with subscriptions:read.
Exact retries must reuse the same idempotency key, external order ID, and request payload. Reuse with changed data returns 409 and creates nothing. After an ambiguous timeout or 502, retry the exact request rather than generating a second order.
4. Configure signed lifecycle webhooks
Register a public HTTPS receiver on port 443 with webhooks:write. Private, loopback, local, credential-bearing, non-HTTPS, or unsafe DNS destinations are rejected.
Subscribe to * or selected events: subscription created/accepted, payment received, issuance completed, register updated, and subscription settled.
Store the returned whsec_… signing secret immediately; it is displayed only once.
Read the raw body, reject stale timestamps, and calculate HMAC-SHA256 over timestamp + "." + rawBody.
Constant-time compare the calculated v1=… signature with X-Valuya-Signature.
Deduplicate on X-Valuya-Event-Id, persist the event before processing, and return 2xx quickly.
Process asynchronously and make handlers idempotent because deliveries can be delayed, repeated, or out of order.
Delivery retries use progressive backoff. Inspect delivery status and replay an individual failed delivery only after correcting the receiver. Secret rotation provides a 24-hour previous-secret overlap; deploy dual-secret verification before rotating.
Handle errors safely
401 / 403
Stop and correct the invalid credential, environment, expiry, revocation, or missing least-privilege scope.
404
Verify the UUID and campaign authorisation without probing for resources belonging to another distributor.
409
Reconcile the investor identity or idempotency conflict. Do not retry unchanged or mint replacement identifiers to bypass it.
422
Use the structured error code, reasons, and fields to correct validation, eligibility, terms, wallet, or campaign input.
429
Respect rate limiting and apply bounded exponential backoff with jitter.
502 / timeout
Retry the exact subscription request with the original idempotency and order identifiers, then reconcile by status.
Never log bearer tokens, webhook secrets, complete investor payloads, KYC references, wallet evidence, or unredacted error bodies containing personal data.
Run the staging acceptance matrix
Valid, missing, expired, revoked, wrong-environment, and insufficient-scope credentials.
Authorised catalogue isolation and unauthorised-security 404.
Natural-person and legal-entity resolution, identical replay, identity conflict, and compliance refresh.
Every eligibility rejection reason, including stale or future verification evidence.
Amount and quantity subscriptions; exact replay; changed-payload conflict; timeout and provider failure.
Provisioned, provided, and reused wallets on the required chain.
Webhook signature failure, stale timestamp, duplicate and out-of-order events, receiver outage, retry, replay, and secret rotation.
Payment, issuance, register, and settlement reconciliation between distributor and tenant records.
Require a clean readiness report
Valuya operations runs the read-only Distribution readiness action for the distributor and shares the timestamped result. Before production promotion, require the canary option so the report verifies persisted staging evidence.
API kill switch, issuer-SEPA-only provider policy, and legacy plaintext partner API disabled.
Central compliance history, queue topology, scheduled outbox recovery, and drained outbox.
Active distributor in the correct environment with usable credentials.
Active, executable campaign linked to an active tenant security.
Any blocker prevents promotion. A successful HTTP request alone is not Distribution API readiness.
Promote separately to production
Production requires a new approval and production-bound configuration. Do not copy a sandbox database row, token, webhook secret, test investor, order ID, wallet, or campaign status into production.
Repeat legal, compliance, data-protection, operational, security, and disaster-recovery approval.
Create the production distributor, channel, campaign, credentials, and webhook endpoint in the production control plane.
Use vd_live_… credentials delivered through the approved secret channel.
Run a controlled production canary only under the approved launch plan and reconcile every side effect.
Retain rollback, deactivation, credential-revocation, support, and incident contacts.
Distribution API completion check
The sandbox distributor, channel, and campaign are approved, active, and tenant-correct.
Only the intended active security is visible to the distributor.
Credentials are least-privileged, environment-bound, securely stored, expiring, and rotatable.
Investor compliance, subscription acceptance, idempotency, wallet, payment, and settlement flows were reconciled.
Webhook signatures, replay defence, retries, replay, and secret rotation were demonstrated.
The canary readiness report has zero blockers and client acceptance evidence is retained.
Production remains disabled until its separate approval and provisioning are complete.