Skip to content
Last updated

Raise dispute with embedded flow

With the dispute creation flow, your end users (your operations staff or your customers) can submit a card dispute on a Wise-hosted page branded with your logo and theme colours. The flow guides them through a series of questions and lets them upload supporting documents directly on the page.

If Wise needs more information, we contact the end user at the email address you provide when generating the dispute URL.

Dispute creation flow

The flow starts when you request a dispute URL and ends when the end user returns to your application. Wise sends webhook notifications when a dispute is submitted or updated.

End userWisePartnerEnd userWisePartner1. Request dispute URLEmbedded flow URL (expires in 5 minutes)2. Redirect to embedded flow URL3. Complete dispute flow4. Redirect to partner's redirectUrl5. Webhook notification
End userWisePartnerEnd userWisePartner1. Request dispute URLEmbedded flow URL (expires in 5 minutes)2. Redirect to embedded flow URL3. Complete dispute flow4. Redirect to partner's redirectUrl5. Webhook notification

Integration steps

Follow these steps to generate a dispute URL, open the flow, and track the dispute.

Step 1: Generate a dispute URL

Request a dispute link for the transaction you'd like to dispute.

Endpoint: POST /profiles/{profileId}/embedded-flows/link-requests/spend/disputes

Request body:

FieldRequired?Description
transactionIdYesThe card transaction ID to dispute.
redirectUrlYesThe URL to redirect the end user to after the flow completes.
emailYesThe end user's email address, to receive dispute updates.
curl -i -X POST \
  'https://api.wise.com/2026Q4/profiles/{profileId}/embedded-flows/link-requests/spend/disputes' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'X-External-Correlation-Id: f47ac10b-58cc-4372-a567-0e02b2c3d479' \
  -d '{
    "redirectUrl": "https://example.com/return",
    "transactionId": 625327,
    "email": "user@example.com"
  }'

Response:

  • url: The embedded flow URL to redirect the end user to.
  • expiresAt: The URL expiration timestamp.

The generated URL is valid for 5 minutes. Once the end user opens the link, they have up to 1 hour to complete and submit the dispute form. After that, generate a new URL to dispute the card transaction.

For request and response details, see the dispute creation link request reference.

Step 2: Redirect the end user to the dispute URL

Direct the end user to the URL received in the url field of the response.

The embedded flow guides them through:

  1. Selecting the type of issue with their transaction, such as fraud, an ATM withdrawal issue, or an incorrect charge.
  2. Providing dispute details and uploading supporting documents, such as receipts, screenshots, or merchant correspondence.
  3. Reviewing and submitting the dispute.

For embedding options, event handling, and styling, see the Embedded Flows guide.

Step 3: Handle the redirect callback

After the end user completes or exits the flow, Wise redirects them to your redirectUrl with a status query parameter. When the flow completes, Wise also adds the disputed card transaction IDs as transactionIds query parameters, for example transactionIds=12&transactionIds=13. See Redirect instead of embedding for the possible status values, and Dispute creation for the completion data.

If the transaction already has an active dispute, the end user sees a message explaining that a dispute already exists before returning to your redirectUrl.

Step 4: Receive webhook notifications

Subscribe to the transaction-disputes#update webhook to receive notifications when disputes are submitted or updated.

Key fields in the webhook payload for schema version 4.0.0:

  • data.resource.id: The dispute ID.
  • data.resource.transaction_id: The associated card transaction.
  • data.status: The current dispute status (ACTIVE or CLOSED).
  • data.sub_status: The detailed status, such as SUBMITTED or WITHDRAWN.
  • data.can_withdraw: Whether the dispute can be withdrawn.

For the complete specification, see the transaction disputes update event reference.

Manage disputes

Once a dispute is created, use the dispute management APIs to track and manage it.

Check dispute status

Listen for the transaction-disputes#update webhook to stay informed of status changes. Alternatively, use List disputes with the transactionId query parameter to retrieve the disputes for the card transaction, as the embedded flow doesn't return the dispute ID.

Withdraw a dispute

The end user may request to withdraw a dispute, for example if the merchant has resolved the issue. You can withdraw a dispute through the API only when its canWithdraw field is true.

Edit a dispute

Disputes cannot be edited after submission. To update a submitted dispute, please contact the Wise Enterprise support team. If more information is needed, Wise contacts the end user at the email address you provided when generating the dispute URL.