---
title: "Simulate Card Authorization/Capture"
method: POST
path: "/api/v1/simulation/{paymentId}/card/auth-capture"
tags: ["Simulations"]
---

# Simulate Card Authorization/Capture

`POST /api/v1/simulation/{paymentId}/card/auth-capture`

## Request

- Base URL: `https://merchant-api.accruesavings.com`
- URL: `https://merchant-api.accruesavings.com/api/v1/simulation/{paymentId}/card/auth-capture`
- Auth: none declared. Required headers: `Client-ID`, `Authorization`
- TypeScript: <https://skmtc.dev/byaccrue/apis/accrue-merchant-api/docs/api/v1/simulation/:paymentId/card/auth-capture/post.ts> (a function with typed inputs; its response is checked against the schema)

Simulate a card authorization/capture request.

  This endpoint aggregates the [Simulate Card Authorization](/api#tag/Simulations/operation/simulateCardAuthorization) and [Simulate Card Capture](/api#tag/Simulations/operation/simulateCardCapture) endpoints.

  **This endpoint is available for Card Rails (Virtual Debit Cards) only**.

  Refer to [Merchant API](/docs/payments/merchant-api/#payment-authorization-and-capture-via-card-rails-virtual-debit-cards) Guide for more information.

## Path parameters

- `paymentId` string, uuid, required: Payment ID

## Headers

- `Client-ID` string, uuid, required: The unique identifier of the client making the request. This header is required to retrieve the client-specific configuration and ensure that the response is tailored to the client's settings and permissions.
- `Authorization` string, uuid, required: Secure secret to access privileged endpoints.

## Request body

- object
  - `data` SimulateCardAuthorizationCapture, required: SimulateCardAuthorizationCapture
    - `id` string, uuid, required: Unique identifier for the object.
    - `type` 'SimulateCardAuthorizationCapture', required
    - `attributes` object, required
      - `amount` integer, required: Amount to authorize/capture in cents

## Response `200`

OK

- object
  - `success` boolean, required: Indicates whether the authorization/capture was successful.
  - `error` string, nullable, required: Error message if the authorization/capture was not successful.

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/byaccrue/apis/accrue-merchant-api.md) - [All operations](https://skmtc.dev/byaccrue/apis/accrue-merchant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/byaccrue/apis/accrue-merchant-api/revisions/3e2d97ef2e6e?raw)
