---
title: "Simulate withdrawal authorization in sandbox environment"
method: POST
path: "/card/mock/withdrawal/purchase/authorize"
tags: ["Card - Mock"]
---

# Simulate withdrawal authorization in sandbox environment

`POST /card/mock/withdrawal/purchase/authorize`

Generate a mock debit card withdrawal authorization transaction in sandbox. This endpoint will generate a <a href="https://docs.helix.q2.com/docs/transaction" target="_blank">transaction</a> with `typeCode=ATHPCH` and a <a href="https://docs.helix.q2.com/docs/event-types#debit-card-withdrawal-authorization-events" target="_blank">Debit Card Withdrawal Authorization real-time event</a> with `userEventTypeId=3060240`.

## Request body

- object
  - `customerId` integer, required
  - `cardId` integer, required
  - `transactionAmount` number, required
  - `merchantDescription` string

## Response `200`

A 200 status with no `data` property present. Use the <a href="https://docs.helix.q2.com/reference/transactionlist" target="_blank">/transaction/list</a> endpoint to fetch transaction details.

- 0 — unresolved $ref

---

[API](https://skmtc.net/q2/apis/helix-api.md) · [All operations](https://skmtc.net/q2/apis/helix-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/q2/helix-api/revisions/0f8d32b907b3/schema)
