Simulations 2.0 — Card Transactions
Simulate refund authorization
Online refund refers to the refund.authorization messages that Visa and Mastercard merchants can send to card issuers. These refund authorizations allow merchants to notify customers of a pending refund and give card issuers the opportunity to decline a refund. Like purchase authorizations, refund authorizations are eventually cleared or completed by a refund.authorization.clearing event. That refund authorization clearing is automatically accepted and processed by the Marqeta platform, regardless of your funding model.
post/simulations/cardtransactions/refund.authorization
Request
- Base URLhttps://sandbox-api.marqeta.com/v3
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Created
Example response
{
"transaction": {
"type": "authorization",
"state": "PENDING",
"token": "**AUTHORIZATION_TRANSACTION_TOKEN**",
"user_token": "**USER_TOKEN**",
"card_token": "**CARD_TOKEN**",
"response": {
"code": "0000",
"memo": "Approved or completed successfully"
},
"created_time": "2024-12-06T21:39:43Z",
"user_transaction_time": "2024-12-06T21:39:43Z",
"settlement_date": "2024-12-06T00:00:00Z",
"amount": 10,
"gpa": {
"ledger_balance": 250,
"available_balance": 240,
"impacted_amount": -10
},
"currency_code": "USD",
"currency_conversion": {
"original_amount": 10,
"conversion_rate": 1,
"original_currency_code": "840"
},
"network": "VISA",
"subnetwork": "VISANET",
"card_acceptor": {
"mid": "000000000011111",
"mcc": "6411",
"name": "Marqeta Storefront",
"city": "St. Petersburg",
"state": "FL"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.