---
title: "Simulate a chargeback against a payin"
method: POST
path: "/v1/payins/{payin_id}/simulate_chargeback"
tags: ["Chargebacks"]
---

# Simulate a chargeback against a payin

`POST /v1/payins/{payin_id}/simulate_chargeback`

Only available in the Rainforest sandbox environment.

The expected webhooks will be sent as the as the chargeback is created.

## Parameters

- `#/paths/~1v1~1payins/get/parameters/0` — unresolved $ref
- `#/paths/~1v1~1payins~1%7Bpayin_id%7D/get/parameters/1` — unresolved $ref

## Request body

- object — Simulation request to create a chargeback against a payin.
  - `status` 'INQUIRY_ACTION_REQUIRED' | 'DISPUTE_ACTION_REQUIRED' — Initial status to initiate a chargeback in.

## Response `200`

OK

- object
  - `status` Status — unresolved $ref
  - `data` Data — unresolved $ref
  - `errors` Errors — unresolved $ref

## Other responses

- `400` — unresolved $ref
- `401` — unresolved $ref
- `403` — unresolved $ref
- `404` — unresolved $ref
- `5XX` — unresolved $ref

---

[API](https://skmtc.dev/rainforestpay/apis/authentication.md) · [All operations](https://skmtc.dev/rainforestpay/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rainforestpay/authentication/revisions/529a0dab0f90/schema)
