---
title: "Simulate clearing or refund"
method: POST
path: "/cards/transaction_simulations/clearing"
tags: ["Card Transaction Simulations"]
---

# Simulate clearing or refund

`POST /cards/transaction_simulations/clearing`

Simulate an `authorization.clearing` type transaction by including the `original_transaction_token` and `amount` in your request. To simulate a refund type transaction, set the `is_refund` field to true.

## Request body

- ClearingModel
  - `amount` integer, required — The amount of the transaction in the smallest whole denomination of the applicable currency (eg. For USD use cents)
  - `card_acceptor` CardAcceptorModel
    - `address` string
    - `city` string
    - `country` string
    - `ecommerce_security_level_indicator` string
    - `mcc` string
    - `name` string
    - `partial_approval_capable` boolean
    - `state` string — Two-Letter USPS State Abbreviation
    - `zip` string
  - `force_post` boolean
  - `is_refund` boolean
  - `mid` string
  - `network_fees` NetworkFeeModel[]
    - `amount` integer, required — The amount of the fee in the smallest whole denomination of the applicable currency (eg. For USD use cents)
    - `credit_debit` 'C' | 'D' — C = credit; D = debit
    - `type` 'ACQUIRER_FEE' | 'CROSS_BORDER_ISSUER_FEE' | 'CUR_CONV_CARDHOLDER_FEE' | 'CUR_CONV_ISSUER_FEE' | 'INTERCHANGE_FEE' | 'ISSUER_FEE' | 'PINDEBIT_ASSOC_FEE' | 'SWITCH_FEE', required
  - `original_transaction_id` string, uuid, required — When you simulated a clearing the synchronous response would have included a `transaction.token`. That value should be used here.

## Response `201`

Success

- SimulationResponseModel

## Other responses

- `400` — BadRequest
- `401` — Unauthorized
- `403` — Forbidden error
- `500` — Internal server error

---

[API](https://skmtc.net/synctera/apis/synctera-api.md) · [All operations](https://skmtc.net/synctera/apis/synctera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/synctera/synctera-api/versions/b0d812e6cdd0/schema)
