Skip to main content
Beta FeatureThe Transaction Simulations feature is currently in beta. API endpoints and behavior may change as we continue to refine the product. Simulation endpoints are available in development environments only β€” production returns 404 Not Found.
Simulate refunding a settled transaction β€” for example, when a merchant issues a refund after the original purchase was captured. This creates a credit back to the cardholder. Use this to test how your integration handles refunds, including the transaction.spend.completed webhook with a refund completion reason.

Endpoint

Path parameters

Headers

Body

Example request

Response

A successful response returns the transaction ID and settled status with a refund completion reason.
200 OK

Errors

Behavior notes

  • Transaction must be settled. You can only refund transactions that have already been settled.
  • FX conversion applies. The refund amount is converted using the transaction’s original merchant and billing currencies.
  • Triggers webhooks. The refund fires the same webhooks as a real refund, including transaction.spend.completed with completionReason: "REFUND".

Example