Simulations (Dev)
Create a Transaction
API Reference
Entities
- The entity endpoint
- POSTCreate an Individual
- POSTCreate a Corporation
- PUTUpdate an Entity
- GETRetrieve an Entity
- GETList all Entities
- Connect
- Verification Sessions
- Credit Scores
- Attributes
- Vehicles
- Identities
- Products
- Subscriptions
- Consent
Accounts
- The account endpoint
- POSTCreate an Account
- GETRetrieve an Account
- GETList all Accounts
- Updates
- Transactions
- Card Brand
- Attributes
- Payoffs
- Balances
- Sensitive
- Products
- Subscriptions
- Verification Sessions
- Consent
Payments
Supporting Endpoints
- Merchants
- Webhooks
- Reports
- Simulations (Dev)
- Health Check
Simulations (Dev)
Create a Transaction
POST
/
simulate
/
accounts
/
:acc_id
/
transactions
curl https://dev.methodfi.com/simulate/accounts/:acc_id/transactions \
-X POST \
-H "Method-Version: 2024-04-04" \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
-H "Content-Type: application/json" \
-d '{}'
{
"id": "txn_ydx4UUQcyJALz",
"account_id": "acc_r6JUYN67HhCEM",
"merchant": {
"name": "SILVER MNT EATERY SS",
"category_code": "5812",
"city": "Austin",
"state": "TX",
"country": "USA",
},
"network": "visa",
"network_data": null,
"amount": 18894,
"currency": "USD",
"billing_amount": 18894,
"billing_currency": "USD",
"status": "auth",
"error": null,
"created_at": "2024-03-11T16:53:23.109Z",
"updated_at": "2024-03-11T16:53:23.109Z"
}
Transaction simulation is available for Credit Card Accounts that have been verified and are subscribed to the Transactions product.
Simulating a Transaction will mimic a new transaction created by the credit card networks for a specific Account.
Path Parameters
ID of the Account.
Returns
Returns the Transaction object.
curl https://dev.methodfi.com/simulate/accounts/:acc_id/transactions \
-X POST \
-H "Method-Version: 2024-04-04" \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
-H "Content-Type: application/json" \
-d '{}'
{
"id": "txn_ydx4UUQcyJALz",
"account_id": "acc_r6JUYN67HhCEM",
"merchant": {
"name": "SILVER MNT EATERY SS",
"category_code": "5812",
"city": "Austin",
"state": "TX",
"country": "USA",
},
"network": "visa",
"network_data": null,
"amount": 18894,
"currency": "USD",
"billing_amount": 18894,
"billing_currency": "USD",
"status": "auth",
"error": null,
"created_at": "2024-03-11T16:53:23.109Z",
"updated_at": "2024-03-11T16:53:23.109Z"
}
curl https://dev.methodfi.com/simulate/accounts/:acc_id/transactions \
-X POST \
-H "Method-Version: 2024-04-04" \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
-H "Content-Type: application/json" \
-d '{}'
{
"id": "txn_ydx4UUQcyJALz",
"account_id": "acc_r6JUYN67HhCEM",
"merchant": {
"name": "SILVER MNT EATERY SS",
"category_code": "5812",
"city": "Austin",
"state": "TX",
"country": "USA",
},
"network": "visa",
"network_data": null,
"amount": 18894,
"currency": "USD",
"billing_amount": 18894,
"billing_currency": "USD",
"status": "auth",
"error": null,
"created_at": "2024-03-11T16:53:23.109Z",
"updated_at": "2024-03-11T16:53:23.109Z"
}