Report Off-WHITELABEL Transactions

This endpoint gives WHITELABEL visibility over the traffic you process directly with your providers, outside WHITELABEL’s transaction path. Each accepted event is persisted as a regular WHITELABEL payment, differentiated by the origin field:

  • origin: YUNO — payments processed by WHITELABEL (every existing payment).
  • origin: REPORTED — payments that entered through this API.

Reported payments appear in the dashboard, in GET /v1/payments, and in analytics — filtered by origin — but WHITELABEL never processes them: no routing, no provider calls, no retries, and no money movement. The money already moved at your provider; WHITELABEL records the fact.

Enabled per organization

This API requires activation for your organization. Contact your Key Account Manager (KAM) to enable it.

How it works

  1. You process a transaction directly with your provider (for example a purchase on your own Adyen account).
  2. You report it here: one event or a batch of up to 500. For latency-sensitive integrations, batches of up to 100 events are recommended. The full 500-event batch is processed synchronously and can take several seconds.
  3. Each accepted event creates one payment with one transaction, with the status derived from result and the event type:
    • A PURCHASE with result SUCCEEDED lands the payment SUCCEEDED.
    • An AUTHORIZE with result SUCCEEDED lands PENDING with sub-status AUTHORIZED. An approved authorization is not captured money; it mirrors how WHITELABEL-processed authorizations behave.
    • A VERIFY with result SUCCEEDED lands SUCCEEDED with sub-status VERIFIED. The verification completed and no money moves; it mirrors how WHITELABEL-processed verifications persist.
    • DECLINED lands DECLINED, and ERROR lands ERROR.

In this version the supported operations are PURCHASE (default), AUTHORIZE, and VERIFY. A VERIFY reports a card verification (zero-dollar authorization), typically reported with amount.value: 0. Lifecycle events (captures, refunds, chargebacks) are on the roadmap.

Retries and deduplication

There is no idempotency header on this endpoint, and none is needed. The report_id you generate per event is the deduplication key. An event whose report_id was already ingested is counted in duplicates and never ingested twice, no matter when or in which batch it arrives. Retrying a whole batch after a network failure is always safe.

Because report_id alone decides, an event that reuses an already-ingested report_id with a different payload is also counted as a duplicate and silently discarded — never reuse a report_id across different transactions.

The batch is processed per event: one invalid event lands in rejected[] with its reason, and the rest of the batch is unaffected.

Card BIN for BIN-level routing statistics

On CARD events you can send the card’s BIN in payment_method_details.card.bin — the first 6 or 8 digits of the card number, exactly. The BIN is not cardholder data: it identifies the issuer and card range, never the card.

When present, WHITELABEL stores it on the reported payment (payment_method.detail.card.card_data.iin on the transaction) and uses it to segment your statistics per BIN in the Routing Recommendations API, so a payment on the same BIN can be ranked on that BIN’s own history instead of the country-wide one.

  • payment_method_details is keyed by the payment method type — today only card, and only on events whose payment_method_type is CARD. A card.bin on an event of any other type, or a container with any other key, rejects the event.
  • The BIN must be exactly 6 or 8 digits. A 7-digit value, a longer value, or anything that is not all digits rejects the event with INVALID_EVENT.
  • Omitting payment_method_details, or sending it empty ({} or {"card": {}}), keeps the event exactly as before: no BIN is stored and the event feeds the country and payment-method statistics only.

CIT / MIT initiation for initiation-level routing statistics

You can tell WHITELABEL how each transaction was initiated by sending initiation at the event level: CIT (cardholder-initiated — the customer was present at checkout) or MIT (merchant-initiated, e.g. a subscription renewal). CIT and MIT approve very differently per provider, so splitting your reported history by initiation lets the Routing Recommendations API rank a payment on the history of its own initiation type.

  • initiation is optional and flat at the event level, like token_type_used. It accepts only CIT or MIT; any other value rejects that event with INVALID_EVENT and the message The field 'initiation' must be CIT or MIT.
  • Omitting initiation keeps the event exactly as before: it feeds the non-initiation statistics only, and a recommendation request that carries no payment.initiation is unaffected.

The raw provider response

If you include raw_provider_response (the provider’s response payload, verbatim, up to 64 KB), WHITELABEL stores it with defensive card-data redaction applied — primary account numbers and security codes are removed before anything is persisted. It is never returned by any API.

Sending it is recommended: it lets WHITELABEL enrich the reported payment later (network transaction references, decline reasons) without asking you for anything new.

Never send card data in the event fields. Reported events carry references and outcomes, not cardholder data. The BIN in payment_method_details.card.bin is the only card-derived value accepted, and it is not a card number. The only place a card number may transit is inside raw_provider_response, where it is redacted on ingestion.

Operations on reported payments

Reported payments cannot be operated through WHITELABEL — a refund or capture request on a payment with origin: REPORTED returns 403 OPERATION_NOT_ALLOWED_FOR_REPORTED_PAYMENT. Perform the operation at your provider and report it as a new event when lifecycle events become available.

Errors

Errors return a code and a messages array.

HTTPcodeWhen
400INVALID_REQUESTMalformed body, missing required field, or a batch over 500 events.
400INVALID_ACCOUNT_IDThe account_id does not exist or does not belong to your organization.
401NOT_AUTHENTICATED / INVALID_CREDENTIALSMissing or invalid PUBLIC-API-KEY / PRIVATE-SECRET-KEY headers.
403PRODUCT_NOT_ENABLED“The Transaction Reporting API is enabled per organization. Contact your Key Account Manager (KAM) to activate it.”

Per-event rejections: INVALID_EVENT

INVALID_EVENT is not an HTTP error — the batch itself is accepted (202), and each invalid event is returned individually inside rejected[] with this code and its reason, while the rest of the batch is ingested normally:

{
  "accepted": 2,
  "duplicates": 0,
  "rejected": [
    { "report_id": "merchant-rpt-000124", "code": "INVALID_EVENT", "messages": ["The field 'event_type' must be one of: PURCHASE, AUTHORIZE, VERIFY."] }
  ]
}

Causes: invalid enum value, wrong field type, unknown field, a payment_method_details.card.bin that is not exactly 6 or 8 digits (or sent on a non-CARD event), or raw_provider_response over 64 KB.

POST/reporting/transactions

Reports transactions processed directly with a provider (outside WHITELABEL). Each accepted event is persisted as a regular WHITELABEL payment with origin: REPORTED — visible in the dashboard, listings and analytics, but never routed, retried or charged by WHITELABEL.

Header Parameters

PUBLIC-API-KEYstring

Your public API key.

PRIVATE-SECRET-KEYstring

Your private secret key. Never expose it client-side.

Body application/json

account_idstring<uuid>required

UUID of the WHITELABEL account the reported payments belong to.

eventsobject[]required

One event or a batch of up to 500. Events are processed per item: one invalid event never rejects the batch.

Show events properties
report_idstringrequired

Your unique identifier for this event — the deduplication key. An event with a report_id already ingested is counted as a duplicate and never ingested twice, which makes retries safe.

merchant_order_idstringrequired

Your order reference — how you find the payment in the dashboard.

countrystringrequired

Uppercase ISO 3166-1 alpha-2 country code of the transaction (e.g. US); lowercase or unknown codes are rejected.

payment_method_typestringrequired

Payment method type used at the provider — must be one of WHITELABEL’s payment-method types (e.g. CARD, PIX); unknown types are rejected.

result"SUCCEEDED" | "DECLINED" | "ERROR"required

The outcome the provider gave you. Maps to the payment status together with the event type: PURCHASE+SUCCEEDED → payment SUCCEEDED; AUTHORIZE+SUCCEEDED → PENDING/AUTHORIZED (an approved authorization is not captured money); DECLINED → DECLINED; ERROR → ERROR.

amountobjectrequired

Transaction amount. Decimal value — a payment of $99 is 99.00, not 9900.

Show amount properties
valuenumberrequired

Decimal amount, greater than or equal to zero. A 0 amount is typical of VERIFY events (zero-dollar verification).

currencystringrequired

Uppercase ISO 4217 currency code (e.g. USD); lowercase or unknown codes are rejected.

provider_idstringrequired

The provider you processed the transaction with — must be one of WHITELABEL’s catalog provider ids (e.g. ADYEN); unknown providers are rejected. Shown on the payment, enabling provider-level segmentation in the dashboard and analytics.

latency_msinteger

Optional. The provider’s response time as observed by you, in milliseconds (round-trip of the authorization call). Feeds latency analytics per provider and the LATENCY and BALANCED objectives of Routing Recommendations: events without it carry no latency to rank on.

token_type_used"FPAN" | "DPAN" | "PROVIDER_TOKEN"

Optional. The credential you sent to the provider for this transaction: FPAN — the real card number (funding PAN); DPAN — the card’s network token; PROVIDER_TOKEN — a token issued by that provider for the stored card (e.g. a saved-card or stored-payment-method token on the provider’s own vault). Powers approval-rate analysis per token type.

initiation"CIT" | "MIT"

Optional. How the transaction was initiated at the provider: CIT — cardholder-initiated (the customer was present at checkout); MIT — merchant-initiated (e.g. a subscription renewal). Any other value rejects the event with INVALID_EVENT and the message “The field ‘initiation’ must be CIT or MIT.” Powers approval-rate statistics split by initiation in Routing Recommendations. Omit it to keep the event exactly as before.

payment_method_detailsobject

Optional. Details of the payment method used at the provider, keyed by the payment method type — today only card, and only on events whose payment_method_type is CARD. A card.bin on an event of another type, or a container with any other key, rejects the event. An empty container ({} or {"card": {}}) is treated as absent.

Show payment_method_details properties
cardobject
Show card properties
binstring

The card’s BIN — the first 6 or 8 digits of the card number, exactly; any other length or a non-digit rejects the event with INVALID_EVENT. Not cardholder data. Stored on the reported payment’s transaction as payment_method.detail.card.card_data.iin and used to build BIN-level statistics for Routing Recommendations. Omit it to keep the event exactly as before.

event_type"PURCHASE" | "AUTHORIZE" | "VERIFY"

Optional. The operation you performed at the provider: PURCHASE — a direct charge (authorization and capture in one step; the default when omitted); AUTHORIZE — an authorization to be captured later (the payment lands PENDING with sub-status AUTHORIZED); VERIFY — a card verification / zero-dollar authorization (the payment lands SUCCEEDED with sub-status VERIFIED).

occurred_atstring<date-time>

Optional. When the transaction happened at the provider (RFC 3339, UTC). Defaults to the time WHITELABEL receives the event.

raw_provider_responseobject

Optional. The provider’s response payload, verbatim (JSON, up to 64 KB). Stored with defensive card-data redaction applied; never returned by any API. Archiving it lets WHITELABEL enrich the payment later without asking you for anything new.

Response

Batch accepted and processed per event.

acceptedinteger

Events ingested as payments.

duplicatesinteger

Events skipped because their report_id was already ingested.

rejectedobject[]

Events that failed validation, each with its reason. The rest of the batch is unaffected.

Show rejected properties
report_idstring
codestring
messagesstring[]

Request-level validation failure — malformed body, missing required field, or a batch over 500 events. An account_id that does not exist or does not belong to your organization answers INVALID_ACCOUNT_ID.

codestring
messagesstring[]

Unauthorized — NOT_AUTHENTICATED / INVALID_CREDENTIALS (missing or invalid PUBLIC-API-KEY / PRIVATE-SECRET-KEY headers).

codestring
messagesstring[]

Forbidden — PRODUCT_NOT_ENABLED (the product is not enabled for your organization).

codestring
messagesstring[]
Request
curl -X POST "https://api-sandbox.whitelabel.com/v1/reporting/transactions" \
  -H "Content-Type: application/json" \
  -H "PUBLIC-API-KEY: <PUBLIC-API-KEY>" \
  -H "PRIVATE-SECRET-KEY: <PRIVATE-SECRET-KEY>" \
  -d '{
  "account_id": "00000000-0000-0000-0000-000000000000",
  "events": [
    {
      "report_id": "string",
      "merchant_order_id": "string",
      "country": "string",
      "payment_method_type": "string",
      "result": "SUCCEEDED",
      "amount": {
        "value": 0,
        "currency": "string"
      },
      "provider_id": "string",
      "latency_ms": 0,
      "token_type_used": "FPAN",
      "initiation": "CIT",
      "payment_method_details": {
        "card": {
          "bin": "string"
        }
      },
      "event_type": "PURCHASE",
      "occurred_at": "1970-01-01T00:00:00.000Z",
      "raw_provider_response": {}
    }
  ]
}'
Response
{
  "accepted": 0,
  "duplicates": 0,
  "rejected": [
    {
      "report_id": "string",
      "code": "string",
      "messages": [
        "string"
      ]
    }
  ]
}