Simulate a card transaction
Simulate a card purchase at a merchant. The purchase is authorized against the card’s balance and spend controls unless force is true.
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 card’s funding currency.
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.