---
title: "Simulate cash-in cancel"
method: POST
path: "/cash-ins/{cashInId}/simulate/cancel"
tags: ["Sandbox"]
---

# Simulate cash-in cancel

`POST /cash-ins/{cashInId}/simulate/cancel`

## Request

- Base URL: `https://sandbox-api.polygon.technology/v0.10`
- URL: `https://sandbox-api.polygon.technology/v0.10/cash-ins/{cashInId}/simulate/cancel`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/polygon-technology/apis/polygon-oms-public-api/docs/cash-ins/:cashInId/simulate/cancel/post.ts> (a function with typed inputs; its response is checked against the schema)

Simulate the customer cancelling the authorization before handing over the cash (sandbox only).

## Path parameters

- `cashInId` string, required

## Headers

- `Idempotency-Key` string, required

## Request body

- SimulateCashInCancelRequest
  - `cashInCode` string, required
  - `amount` string, required: Wire-safe decimal string for financial float values (USD amounts, percentages).
  - `originalConfirmationId` string, required: The `confirmationId` returned by `present-code`.

## Response `200`

The request has succeeded.

- SimulateCashInCancelResponse
  - `responseCode` string, required
  - `responseText` string, required
  - `responseId` string, required

---

[API](https://skmtc.dev/polygon-technology/apis/polygon-oms-public-api.md) - [All operations](https://skmtc.dev/polygon-technology/apis/polygon-oms-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/polygon-technology/apis/polygon-oms-public-api/revisions/18fdaebf64e5?raw)
