Simulations

Simulate a transfer state update (Sandbox only)

Simulate a transfer state change in the Sandbox environment.

For example, after you make a transfer in Sandbox, you can change its state to completed. The resulting state is final and cannot be changed.

For more information, see the guides: Test your flows with simulations (Sandbox only).

post/sandbox/transactions/{id}/{action}

Request

  • Base URL
    https://sandbox-b2b.revolut.com/api/1.0
  • Auth
    HTTP bearer

Path parameters

idstring uuid required

The ID of the transfer whose state you want to update.

action'complete' | 'revert' | 'decline' | 'fail' required

Indicates the transaction state update. Possible values:

  • complete - Transaction is successfully processed.
  • revert - Transaction is reverted by the system or company, but not the user. This can happen for a variety of reasons, for example, the receiver being inaccessible.
  • decline - Transaction is declined to the user for a good reason, such as insufficient account balance, wrong receiver information, etc.
  • fail - Transaction fails during initiation or completion. This can happen for a variety of reasons, for example, invalid API calls, blocked payments, etc.

Response

Information about the updated transfer state

idstring uuid required

The ID of the transfer whose state was updated.

state'completed' | 'reverted' | 'declined' | 'failed' required

Indicates the simulated transaction state. Possible values:

  • completed - Transaction was successfully processed.
  • reverted - Transaction was reverted by the system or company, but not the user. This can happen for a variety of reasons, for example, the receiver being inaccessible.
  • declined - Transaction was declined to the user for a good reason, such as insufficient account balance, wrong receiver information, etc.
  • failed - Transaction failed during initiation or completion. This can happen for a variety of reasons, for example, invalid API calls, blocked payments, etc.
created_atstring date-time required

The date and time the transfer was created in ISO 8601 format.

completed_atstring date-time

The date and time the transfer was completed in ISO 8601 format.

Changes

No recorded changes to this operation across all 1 revision of this API.