POST/simulations/card_refunds

Sandbox: Refund a card transaction

Simulates refunding a card transaction. The full value of the original sandbox transaction is refunded.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

3 body fields
amountintegeroptional
The refund amount in cents. Pulled off the `pending_transaction` or the `transaction` if not provided.
pending_transaction_idstringoptional
The identifier of the Pending Transaction for the refund authorization. If this is provided, `transaction` must not be provided as a refund with a refund authorized can not be linked to a regular transaction.
transaction_idstringoptional
The identifier for the Transaction to refund. The Transaction's source must have a category of card_settlement.

3 status codes
200Transaction
account_idstringrequired
The identifier for the Account the Transaction belongs to.
amountintegerrequired
The Transaction amount in the minor unit of its currency. For dollars, for example, this is cents.
created_atstringrequired
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the Transaction occurred.
currencystringrequired
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Transaction's currency. This will match the currency on the Transaction's Account.
Allowed:USD
descriptionstringrequired
An informational message describing this transaction. Use the fields in `source` to get more detailed information. This field appears as the line-item on the statement.
idstringrequired
The Transaction identifier.
route_idstringrequired
The identifier for the route this Transaction came through. Routes are things like cards and ACH details.
route_typestringrequired
The type of the route this Transaction came through.
Allowed:account_numbercardlockbox
sourceobjectrequired
This is an object giving more details on the network-level event that caused the Transaction. Note that for backwards compatibility reasons, additional undocumented keys may appear in this object. These should be treated as deprecated and will be removed in the future.
typestringrequired
A constant representing the object's type. For this resource it will always be `transaction`.
Allowed:transaction
4XXError
5XXError