---
title: "Simulate merchant payins complete"
method: POST
path: "/v1/merchants/{merchant_id}/simulate_complete_payments"
tags: ["Deposits"]
---

# Simulate merchant payins complete

`POST /v1/merchants/{merchant_id}/simulate_complete_payments`

## Request

- Base URL: `https://api.sandbox.rainforestpay.com`
- URL: `https://api.sandbox.rainforestpay.com/v1/merchants/{merchant_id}/simulate_complete_payments`
- Auth: HTTP bearer

Only available in the Rainforest sandbox environment.

Simulates completing all pending payment activity on a merchant. Any payins or refunds with the status of `PROCESSING` will be transitioned to the status of `SUCCEEDED`. The funds will then be included in the merchant's available balance.

## Parameters

- `#/paths/~1v1~1deposits/get/parameters/0` (unresolved $ref)
- `#/paths/~1v1~1merchants~1{merchant_id}~1simulate_deposit/post/parameters/1` (unresolved $ref)

## Response `200`

OK

- object
  - `status` Status (unresolved $ref)
  - `data` object: The merchant's balance after the payment activity is completed.
    - `available_balance` object: Funds available to be paid out in the next deposit.
      - `amount` integer: The amount, in minor units. May be negative when refunds or fees exceed payins.
      - `currency_code` CurrencyCode (unresolved $ref)
    - `pending_balance` object: Funds not yet available to be paid out.
      - `amount` integer: The amount, in minor units.
      - `currency_code` 'USD': Three-letter ISO currency code, in uppercase. Currently, only USD is supported.
  - `errors` Errors (unresolved $ref)

## Other responses

- `400` (unresolved $ref)
- `401` (unresolved $ref)
- `403` (unresolved $ref)
- `404` (unresolved $ref)
- `409` (unresolved $ref)
- `5XX` (unresolved $ref)

---

[API](https://skmtc.dev/rainforestpay/apis/deposits.md) - [All operations](https://skmtc.dev/rainforestpay/apis/deposits/llms.txt) - [OpenAPI document](https://skmtc.dev/rainforestpay/apis/deposits/revisions/78538ac34cb2?raw)
