---
title: "Simulate a card ATM withdrawal authorisation clearing"
method: POST
path: "/cards/simulations/atm/withdrawal/authorization/clearing"
tags: ["Simulations"]
---

# Simulate a card ATM withdrawal authorisation clearing

`POST /cards/simulations/atm/withdrawal/authorization/clearing`

## Request

- Base URL: `https://api.equalsmoney.com/v2`
- URL: `https://api.equalsmoney.com/v2/cards/simulations/atm/withdrawal/authorization/clearing`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/equalsmoney/apis/cis-api/docs/cards/simulations/atm/withdrawal/authorization/clearing/post.ts> (a function with typed inputs; its response is checked against the schema)

Simulates a card ATM withdrawal authorisation clearing.

 This endpoint is for testing purposes only and won't work in production.

## Query parameters

- `accountId` string, required: The ID of the account to work with.

## Request body

- object
  - `precedingRelatedTransactionToken` string, required: The token of the transaction to work with.
  - `amount` number, required: The amount.
  - `cardId` string, uuid: Optional. When supplied, em-cards-api routes the simulation to the Marqeta tenant matching the card's product market (UK or US). Omit to keep the legacy UK routing.

## Response `201`

Created

- object
  - `transaction` object: Details about the transaction.
    - `acquirerFeeAmount` string: The acquirer fee amount.
    - `type` string: The type of transaction.
    - `state` string: The state of the transaction.
    - `token` string, uuid: The transaction token.
    - `userToken` string, uuid: The user token.
    - `cardToken` string, uuid: The card token.
    - `requestAmount` string: The request amount.
    - `response` object: Details about the transaction response.
      - `code` string: The transaction response code.
      - `memo` string: The transaction response memo.
    - `createdTime` string, date-time: The date and time at which the resource was initially created, in ISO 8601 format without milliseconds.
    - `userTransactionTime` string, date-time: The date and time of the user transaction, in ISO 8601 format without milliseconds.
    - `settlementDate` string, date-time: The settlement date, in ISO 8601 format without milliseconds.
    - `amount` string: The transaction amount.
    - `gpa` object
      - `ledgerBalance` string: The ledger balance.
      - `availableBalance` string: The available balance.
      - `impactedAmount` string: The impacted amount.
    - `currencyCode` string: The currency code, in ISO 4217 format.
    - `currencyConversion` object
      - `originalAmount` string: The original amount.
      - `conversionRate` number: The conversion rate.
      - `originalCurrencyCode` string: The numeric code of the currency used in the transaction, in ISO 4217 format.
    - `precedingRelatedTransactionToken` string, uuid: The token of the preceding related transaction.
    - `network` string: The card network.
    - `subnetwork` string: The sub-network.
    - `cardAcceptor` object
      - `postalCode` string: The postal or ZIP code of the card acceptor.
      - `mid` string: The Merchant identifier (MID). This identifies a specific merchant.
      - `mcc` string: The Merchant Category Code (MCC).
      - `name` string: The name of the card acceptor.
      - `city` string: The city of the card acceptor.
      - `state` string: The state of the card acceptor.
      - `countryCode` string: The country code of the card acceptor's country, in ISO 3166-1 format (alpha-2).

---

[API](https://skmtc.dev/equalsmoney/apis/cis-api.md) - [All operations](https://skmtc.dev/equalsmoney/apis/cis-api/llms.txt) - [OpenAPI document](https://skmtc.dev/equalsmoney/apis/cis-api/revisions/a162c72b8bf6?raw)
