Create Unreferenced Refund

This request allows you to create an unreferenced refund — a credit pushed directly to a payment method without referencing an original payment transaction.

When to use Unreferenced Refunds

Use this endpoint when the original charge was processed outside WHITELABEL (legacy billing system, external subscription engine) or when you need to send a goodwill / promotional credit. For reversing a WHITELABEL-captured payment, use Refund Payment endpoint with transaction instead.

Provider raw data

The provider object carries the untouched provider exchange in two fields. The shape of both is defined by the provider, not by WHITELABEL, so it varies per provider and per operation.

FieldContentAvailability
raw_requestThe exact payload WHITELABEL sent to the provider.Accounts enabled for provider raw data. Contact your WHITELABEL account manager to request access. Otherwise omitted.
raw_responseThe full payload the provider returned.Not returned on this endpoint. Retrieve it with Retrieve Unreferenced Refund by ID using include_raw_responses=true.

raw_response_code and raw_response_message are summaries of the provider’s answer and are always returned, independently of both fields above.

public-api-keystringrequired

The unique public API key for your account. You find this on the WHITELABEL dashboard.

private-secret-keystringrequired

The unique private secret key for your account. You find this on the WHITELABEL dashboard.

X-Idempotency-Keystringrequired

Unique UUID v4 identifier used to safely retry the request. Retries with the same key return the originally created refund.

account_idstringrequired

The unique identifier of the account. You find this information on the WHITELABEL dashboard (UUID, 36 chars).

merchant_order_idstringrequired

The unique identifier of your internal credit/refund (MAX 255; MIN 3).

merchant_referencestring

Optional correlation ID. Defaults to merchant_order_id (MAX 255; MIN 3).

descriptionstringrequired

The description of the refund. Appears on dashboards and statements (MAX 255; MIN 3).

countrystringrequired

Country where the refund must be processed (MAX 2; MIN 2; ISO 3166-1). Drives provider routing.

amountobjectrequired

Specifies the refund amount object, with the value and currency.

Hide properties
valuenumberrequired

The refund amount (multiple of 0.0001). Must be greater than 0.

currencystringrequired

The currency used for the refund (MAX 3; MIN 3; ISO 4217).

provider_dataobject

Pins the refund to a specific gateway, bypassing routing rules. Useful when the destination provider is dictated by where the original payment was processed.

Hide properties
idstringrequired

Provider identifier. Allowed values: ADYEN, STRIPE, NUVEI, BRAINTREE, GOCARDLESS, ORBITAL, WORLDPAY, VANTIV, CARDCONNECT, FISERV_COMMERCEHUB, MONERIS, NMI, FIRSTDATA, WINDCAVE, SAFERPAY, JPM, PAYPAL_EXPRESS_CHECKOUT, MASTERCARD, CITI, WELLSFARGO, SAGEPAY, FATZEBRA, HELIX, 24HF, MERCHANTE_SOLUTIONS, ANB, AUTHORIZE_NET, SPECTRUM.

connection_idstring

Pins the refund to a specific PSP connection within the provider (UUID). Use it when the provider has more than one connection and the credit must target the exact one (for example, a billing migration). Must be sent together with id; a connection_id without id is rejected with 400.

payment_methodobjectrequired

Specifies the destination of the refund — vaulted token, raw card, bank transfer, or wallet. Exactly one of vaulted_token or detail.<card|wallet|bank_transfer> must be set.

Hide properties
vaulted_tokenstring

WHITELABEL-side vault reference for a previously stored payment method. Preferred path — keeps PCI scope minimal.

detailobject

Inline payment-method details. Use when you do not have a vaulted token. Exactly one sub-object must be populated: card, wallet, or bank_transfer.

Hide properties
cardobject

Use when you need to push the refund to a raw card (WHITELABEL will encrypt the PAN at the edge).

Hide properties
card_dataobjectrequired
Hide properties
numberstringrequired
The card number (PAN). Encrypted at the edge.
holder_namestringrequired
Name as it appears on the card.
expiration_monthintegerrequired
Card expiration month (1–12).
expiration_yearintegerrequired
Card expiration year.
security_codestring
CVV / CVC. Most acquirers do not require it for credits.
brandstringrequired
One of: VISA, MASTERCARD, AMEX, DINERS, DISCOVER, JCB, UNIONPAY, UATP, ELO, HIPERCARD, MAESTRO.
typestring
Card type: CREDIT, DEBIT, PREPAID.
soft_descriptorstring
The text shown on the cardholder’s statement (MAX 255).
stored_credentialsobject
Stored-credential metadata for recurring-credit flows. Reuses the same shape as /v1/payments.
network_tokenobject
Network-token metadata (Visa Token Service / Mastercard MDES) when refunding to a tokenized network credential.
bank_transferobject

Use for SEPA / IBAN, ACH, and GoCardless mandate refunds.

Hide properties
provider_tokenstring
Provider-side reference to a pre-existing bank object. Required for GoCardless — carries the mandate_id (e.g. MD000ABCDEF123). When supplied, bank_account and bank_id are optional.
bank_accountstring
IBAN (SEPA) or account number (ACH / local). Required when no provider_token is supplied.
bank_idstring
BIC / SWIFT (non-SEPA EU corridors) or ABA-9 routing number (ACH). Required for ACH.
account_typestringrequired
One of: IBAN, CHECKING, SAVINGS, CLABE, CCI, LOCAL, MANDATE.
beneficiary_namestringrequired
Recipient name on the account.
beneficiary_typestring
INDIVIDUAL or ENTITY.
beneficiary_documentobject

Recipient’s tax / national ID. Required for ACH (SSN / EIN) and for LATAM SEPA-equivalent corridors.

Hide properties
document_typestring
e.g., SSN, EIN
document_numberstring
e.g., 123-45-6789
walletobject

Use for PayPal Express Checkout refunds.

Hide properties
payment_tokenstringrequired
PayPal payerID of the recipient.
customer_payerobject

Specifies the recipient of the refund. Required for ACH, SEPA, and PayPal destinations to satisfy OFAC and AML screening.

Hide properties
idstring
Existing WHITELABEL customer UUID. Alternative to inlining the customer PII.
merchant_customer_idstring
Your external customer identifier.
first_namestring
Recipient’s first name.
last_namestring
Recipient’s last name.
emailstring
Recipient’s email address.
phoneobject
{ country_code, number, extension }.
documentobject
National identification document. { document_type, document_number }.
date_of_birthstring
YYYY-MM-DD.
nationalitystring
ISO 3166-1 alpha-2 country code.
ip_addressstring
Recipient’s IP address (when known).
billing_addressobject
Postal address.
shipping_addressobject
Same shape as billing_address.
typestring
INDIVIDUAL or ENTITY.
business_namestring
Required when type = ENTITY.
metadataarray of objects

Optional list of key/value pairs for your own reference. Echoed back in the response and webhook payload.

Hide properties
keystring
Free-form label.
valuestring
Free-form value. Max 512 characters.
callback_urlstring

HTTPS URL where WHITELABEL will deliver webhook events for this refund. Falls back to your account-level webhook if omitted.

fraud_screeningobject

When stand_alone: true, WHITELABEL runs an ML fraud check before submitting to the provider. Recommended for raw-card refunds.

Hide properties
stand_aloneboolean
When true, performs a fraud check before provider submission.
Example request
{
  "account_id": "9f6e0a4c-1d2b-4e3f-8a9b-1c2d3e4f5a6b",
  "merchant_order_id": "REFUND-2026-05-14-001",
  "merchant_reference": "credit-note-7891",
  "description": "Subscription correction — duplicate charge",
  "country": "US",
  "amount": {
    "value": 25.00,
    "currency": "USD"
  },
  "provider_data": {
    "id": "STRIPE",
    "connection_id": "8821cf99-89a5-4ecb-aba9-149cb08624fa"
  },
  "payment_method": {
    "vaulted_token": "550e8400-e29b-41d4-a716-446655440000"
  },
  "customer_payer": {
    "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
    "merchant_customer_id": "cust_4521",
    "first_name": "John",
    "last_name": "Doe",
    "email": "john@example.com"
  },
  "metadata": [
    { "key": "billing_cycle_id", "value": "bc_2026_05" },
    { "key": "support_ticket", "value": "ZD-99214" }
  ],
  "callback_url": "https://merchant.example.com/whitelabel/webhooks/refunds"
}
201 - Refund created
{
  "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "account_id": "9f6e0a4c-1d2b-4e3f-8a9b-1c2d3e4f5a6b",
  "merchant_order_id": "REFUND-2026-05-14-001",
  "merchant_reference": "credit-note-7891",
  "country": "US",
  "description": "Subscription correction — duplicate charge",
  "amount": {
    "value": 25.00,
    "currency": "USD"
  },
  "status": "CREATED",
  "sub_status": "CREATED",
  "payment_method": {
    "vaulted_token": "550e8400-e29b-41d4-a716-446655440000",
    "detail": {
      "card": {
        "card_data": {
          "brand": "VISA",
          "last_four": "1111",
          "type": "CREDIT"
        }
      }
    }
  },
  "customer_payer": {
    "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
    "merchant_customer_id": "cust_4521",
    "first_name": "John",
    "last_name": "Doe"
  },
  "provider": {
    "name": "STRIPE",
    "type": "PSP",
    "connection_id": "6ba7b811-9dad-11d1-80b4-00c04fd430c8",
    "reference": "re_3OqQz92eZvKYlo2C0g6XK1Yj",
    "category": "APPROVED",
    "raw_response_code": "succeeded",
    "raw_request": {
      "amount": 2500,
      "currency": "usd",
      "payment_method": "pm_1OqQz92eZvKYlo2C7Kx9Vbnm",
      "metadata": { "merchant_order_id": "REFUND-2026-05-14-001" }
    }
  },
  "metadata": [
    { "key": "billing_cycle_id", "value": "bc_2026_05" }
  ],
  "created_at": "2026-05-14T11:47:13.482Z",
  "updated_at": "2026-05-14T11:47:13.482Z"
}
400 - Validation error
{
  "code": "VALIDATION_ERROR",
  "messages": [
    "One or more fields did not pass validation."
  ]
}
422 - Routing or permission failure
{
  "code": "UNREFERENCED_REFUND_NOT_SUPPORTED",
  "messages": [
    "No provider supports this payment method for non-referenced refunds."
  ]
}