Simulate a transaction update
Record a settlement, adjustment, cancellation, or expiration on a simulated transaction. Refunds are negative adjustments.
Required permissions: simulation:execute.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
A unique key you generate, such as a UUID, so a retried request is applied only once. Optional but strongly advised. Penny keeps each key for 7 days per business and operation: a retry with the same key and body returns the original result, the same key with a different body returns 422, and a retry while the original request is still processing returns 409. Maximum 255 characters.
Request
The event to record: transaction.settled, transaction.adjustment, transaction.cancelled, or transaction.expired.
Decimal string in major units of the transaction’s currency, e.g. “25.00” for $25.00. Required for transaction.settled and transaction.adjustment. Optional for transaction.cancelled and transaction.expired; when omitted, the full pending amount is released. May be negative only for transaction.adjustment, where it records a refund or reduction; never zero.
Response
Whether funds move into (inbound) or out of (outbound) the account.
The client-visible category of the transaction.
The three-letter ISO 4217 currency code of the settlement amount.
The three-letter ISO 4217 currency code of the presented amount. Present together with original_amount.