Simulate a bank payment
Simulate a bank payment between a capital account and a linked account, in either direction.
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
Decimal string in major units, e.g. “25.00” for $25.00; must be greater than zero.
The ISO 4217 currency of amount. Must match the capital account’s currency.
The direction relative to the capital account: inbound for a payment received from the linked account, outbound for a payment sent to it.
When true, settle the payment as soon as it is approved. When false, the payment stays approved until you send a transaction.settled update.
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.