Register a Dry-Run Provider Event
Dry-run is a pre-production validation surface. It receives the API calls your integration sends to a payment provider (request, response, and webhook payloads). It correlates them with the equivalent WHITELABEL public-API call you make in parallel with the X-Dry-Run: true header set.
WHITELABEL then executes an automated validation pipeline that grades the quality of the public-API request against the provider payload: missing fields, shape mismatches, wrong enum values, unmapped metadata, and any other inconsistency that would cause the real payment to fail or behave differently once you go live.
How the pair works
- Your integration makes its normal call to the provider (for example Stripe, Adyen, dlocal).
- Your integration also calls the relevant WHITELABEL public-API endpoint (for example
POST /v1/payments) with the headerX-Dry-Run: true. WHITELABEL accepts the request, does not route it to any provider, and stores it for comparison. - Your integration calls
POST /v1/dry-run/provider-eventswith the raw provider exchange (request, response, webhook) it just performed, correlated to the samemerchant_reference. - WHITELABEL pairs the two records by
merchant_reference+account_idand runs the validation pipeline. Results are available through the dashboard and viaGET /v1/dry-run/provider-events/{id}(read API, separate reference).
The outcome tells you whether the public-API request you are building today would produce the same provider behavior once WHITELABEL starts routing it, without touching production money or sending a live transaction to the provider through WHITELABEL.
When to use it
- Pre-launch: certify your public-API integration against the provider behavior you already have working.
- Provider migrations: verify a new provider accepts the fields WHITELABEL forwards before switching traffic.
- Regression checks: re-run dry-runs in CI to catch drift when your integration or the provider’s contract changes.
One call can carry up to 10 event entries (REQUEST, RESPONSE, and/or WEBHOOK), all tied to the same payment via merchant_reference. See the correlation rules.
This endpoint has a companion: POST /v1/payments accepts an X-Dry-Run: true request header that tells WHITELABEL to validate instead of routing. Both legs must share the same merchant_reference so validation can pair them.
Use X-Idempotency-Key for safe retries. Same key + same payload returns the original response; same key + different payload returns 409.
PCI boundary
headers and body are sent base64-encoded. WHITELABEL base64-decodes on ingestion, applies deterministic PAN/CVV/auth-token redaction, and persists only the redacted form. See PCI Compliance.
Correlation
merchant_referenceis always required and uniquely identifies the order on your side. WHITELABEL uses it to resolve the event to a payment asynchronously whenpayment_idis not supplied.payment_id, if supplied, is resolved immediately. If the id is unknown for your account the request returns404 PAYMENT_NOT_FOUND.provider_id+payment_method_typeoptionally identify which integration surface the dry-run exercises (for examplestripe+CREDIT_CARD). If omitted, WHITELABEL uses the information from the associated payment.
/dry-run/provider-eventsStores the HTTP traffic that the merchant exchanged directly with a payment provider (request, response, and webhook) for correlation to a WHITELABEL payment.
Header Parameters
Public API key. One of PUBLIC-API-KEY / PRIVATE-SECRET-KEY required.
Private secret key for server-to-server calls. One of PUBLIC-API-KEY / PRIVATE-SECRET-KEY required.
Free-form string (MAX 64). 24-hour replay window.
Body application/json
Merchant-assigned identifier (MAX 255; MIN 3). Unique per account.
WHITELABEL payment UUID. If supplied, resolved immediately.
WHITELABEL account UUID — same shape as account_id in POST /v1/payments.
Provider identifier. Allowed values aligned to the WHITELABEL catalog.
Payment method exercised by this dry-run. Same vocabulary as payment_method.type in POST /v1/payments.
1–10 HTTP exchange entries for this dry-run (MAX 10; MIN 1).
Response
Dry-run registered
Public identifier of the dry-run registration (nano_id, 21 chars).
Lifecycle state.
Validation failure
Stable error code.
Human-readable error details.
Missing or invalid credentials
Stable error code.
Human-readable error details.
Payment not found
Stable error code.
Human-readable error details.
Idempotency replay with a different payload
Payload or batch exceeds size limits
Unsupported Content-Type (must be application/json)
Rate limit exceeded