curl https://dev.methodfi.com/simulate/payments/pmt_rPrDPEwyCVUcm \
-X POST \
-H "Method-Version: 2026-03-30" \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
-H "Content-Type: application/json" \
-d '{
"status": "processing"
}'
const payment = await method
.simulate
.payments
.update('pmt_rPrDPEwyCVUcm', { status: 'processing' });
payment = (
method
.simulate
.payments
.update('pmt_rPrDPEwyCVUcm', { 'status': 'processing' })
)
{
"id": "pmt_rPrDPEwyCVUcm",
"idempotency_key": null,
"source": "acc_JMJZT6r7iHi8e",
"destination": "acc_AXthnzpBnxxWP",
"amount": 5000,
"description": "Loan Pmt",
"status": "processing",
"estimated_completion_date": "2020-12-11",
"source_trace_id": null,
"source_settlement_date": "2020-12-09",
"source_status": "processing",
"destination_trace_id": null,
"destination_settlement_date": "2020-12-11",
"destination_posted_date": null,
"destination_status": "processing",
"destination_payment_method": "electronic",
"reversal_id": null,
"reversal_account": null,
"payment_instrument": null,
"fee": null,
"type": "standard",
"error": null,
"metadata": null,
"created_at": "2020-12-09T00:42:31.209Z",
"updated_at": "2020-12-09T00:43:30.996Z"
}
Simulations (Dev)
Update a Payment's Status
POST
/
simulate
/
payments
/
{pmt_id}
curl https://dev.methodfi.com/simulate/payments/pmt_rPrDPEwyCVUcm \
-X POST \
-H "Method-Version: 2026-03-30" \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
-H "Content-Type: application/json" \
-d '{
"status": "processing"
}'
const payment = await method
.simulate
.payments
.update('pmt_rPrDPEwyCVUcm', { status: 'processing' });
payment = (
method
.simulate
.payments
.update('pmt_rPrDPEwyCVUcm', { 'status': 'processing' })
)
{
"id": "pmt_rPrDPEwyCVUcm",
"idempotency_key": null,
"source": "acc_JMJZT6r7iHi8e",
"destination": "acc_AXthnzpBnxxWP",
"amount": 5000,
"description": "Loan Pmt",
"status": "processing",
"estimated_completion_date": "2020-12-11",
"source_trace_id": null,
"source_settlement_date": "2020-12-09",
"source_status": "processing",
"destination_trace_id": null,
"destination_settlement_date": "2020-12-11",
"destination_posted_date": null,
"destination_status": "processing",
"destination_payment_method": "electronic",
"reversal_id": null,
"reversal_account": null,
"payment_instrument": null,
"fee": null,
"type": "standard",
"error": null,
"metadata": null,
"created_at": "2020-12-09T00:42:31.209Z",
"updated_at": "2020-12-09T00:43:30.996Z"
}
Updates a Payment’s status.
Path Parameters
Body
The next status to which the Payment should transition. See Payment Statuses.
The desired Payment error code to simulate. Required when status is
failed, or reversal_processing.Possible enum values
Possible enum values
10001Insufficient funds error.
10002Unauthorized Payment error.
10003Invalid Account error.
10005Unauthorized Source error.
10006Unauthorized Destination error.
10007Invalid Source error.
10008Invalid Destination error.
10009Rejected By Destination error.
10010Invalid Amount error.
Returns
Returns a Payment object with the updated status.curl https://dev.methodfi.com/simulate/payments/pmt_rPrDPEwyCVUcm \
-X POST \
-H "Method-Version: 2026-03-30" \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
-H "Content-Type: application/json" \
-d '{
"status": "processing"
}'
const payment = await method
.simulate
.payments
.update('pmt_rPrDPEwyCVUcm', { status: 'processing' });
payment = (
method
.simulate
.payments
.update('pmt_rPrDPEwyCVUcm', { 'status': 'processing' })
)
{
"id": "pmt_rPrDPEwyCVUcm",
"idempotency_key": null,
"source": "acc_JMJZT6r7iHi8e",
"destination": "acc_AXthnzpBnxxWP",
"amount": 5000,
"description": "Loan Pmt",
"status": "processing",
"estimated_completion_date": "2020-12-11",
"source_trace_id": null,
"source_settlement_date": "2020-12-09",
"source_status": "processing",
"destination_trace_id": null,
"destination_settlement_date": "2020-12-11",
"destination_posted_date": null,
"destination_status": "processing",
"destination_payment_method": "electronic",
"reversal_id": null,
"reversal_account": null,
"payment_instrument": null,
"fee": null,
"type": "standard",
"error": null,
"metadata": null,
"created_at": "2020-12-09T00:42:31.209Z",
"updated_at": "2020-12-09T00:43:30.996Z"
}