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

# Simulate declined purchase authorization in sandbox environment

`POST /card/mock/decline/purchase/authorize`

Generate a mock declined purchase authorization in sandbox. This endpoint will generate a <a href="https://docs.helix.q2.com/docs/event-types#debit-card-declined-events" target="_blank">Debit Card Declined real-time event</a> with `userEventTypeId=3060640`.

## Request body

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

## Response `200`

A 200 status with no `data` property present

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