Simulations 2.0 — Direct Deposits
Simulate credit
Use this endpoint to simulate crediting funds to a deposit account.
Simulate a direct deposit of funds to a user account by including the deposit account number of the account to be credited. You can find the account number in the account_number field of the response when you create a new deposit account. Alternatively, you can retrieve it by sending a GET request to the /depositaccounts/user/{user_token} endpoint. For more information, see Direct Deposit.
post/simulations/directdeposits/credit
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
{
"token": "**DIRECT_DEPOSIT_TOKEN**",
"user_token": "**USER_TOKEN**",
"type": "CREDIT",
"state": "PENDING",
"state_reason": "testing",
"amount": 10,
"created_time": "2025-03-23T19:34:05Z",
"direct_deposit_account_token": "**DIRECT_DEPOSIT_ACCT_TOKEN**",
"last_modified_time": "2025-03-23T19:34:05Z",
"settlement_date": "2025-02-03T13:22:42Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.