---
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`

## Request

- Base URL: `https://api.sandbox.rainforestpay.com`
- URL: `https://api.sandbox.rainforestpay.com/v1/payins/{payin_id}/simulate_chargeback`
- Auth: HTTP bearer

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{payin_id}/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/payments.md) - [All operations](https://skmtc.dev/rainforestpay/apis/payments/llms.txt) - [OpenAPI document](https://skmtc.dev/rainforestpay/apis/payments/revisions/9d7d0b1553a8?raw)
