> ## Documentation Index
> Fetch the complete documentation index at: https://www.marqeta.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Check Returns

> The Marqeta platform's check returns feature allows users to obtain a physical refund check upon closing an account with a residual balance.

export const EndpointCard = ({method = "API", title, children, href, arrow = true}) => {
  const METHOD_STYLES = {
    GET: {
      bg: "mint-bg-green-400/20 dark:mint-bg-green-400/20",
      text: "mint-text-green-700 dark:mint-text-green-400",
      border: "mint-border-green-300 dark:mint-border-green-700"
    },
    POST: {
      bg: "mint-bg-blue-400/20 dark:mint-bg-blue-400/20",
      text: "mint-text-blue-700 dark:mint-text-blue-400"
    },
    PUT: {
      bg: "mint-bg-yellow-400/20 dark:mint-bg-yellow-400/20",
      text: "mint-text-yellow-700 dark:mint-text-yellow-400"
    },
    PATCH: {
      bg: "mint-bg-orange-400/20 dark:mint-bg-orange-400/20",
      text: "mint-text-orange-700 dark:mint-text-orange-400"
    },
    DELETE: {
      bg: "mint-bg-red-400/20 dark:mint-bg-red-400/20",
      text: "mint-text-red-700 dark:mint-text-red-400"
    },
    API: {
      bg: "mint-bg-black",
      text: "mint-text-white"
    }
  };
  const MethodBadge = ({method}) => {
    const style = METHOD_STYLES[method?.toUpperCase()] ?? METHOD_STYLES.GET;
    return <span className={`
          method-pill rounded-lg font-semibold px-1.5 py-0.5 text-xs leading-5 ${style.bg} ${style.text}`}>
        {method?.toUpperCase()}
      </span>;
  };
  const content = <div className="group flex items-center gap-4 border border-gray-200 dark:border-gray-700 rounded-xl p-5 hover:border-gray-400 dark:hover:border-gray-500 hover:shadow-md transition-all cursor-pointer">
      {}
      <div className="shrink-0">
        <MethodBadge method={method} />
      </div>
      {}
      <div className="flex-1 min-w-0">
        <p className="font-semibold text-gray-900 dark:text-white text-sm leading-snug">{title}</p>
        {children && <p className="mt-1 text-sm text-gray-500 dark:text-gray-400 line-clamp-2">{children}</p>}
      </div>
    </div>;
  if (!href) return content;
  return <a href={href} className="block no-underline border-b-0 mb-2">
      {content}
    </a>;
};

<Note>
  **Note**\
  This feature is currently in beta and subject to change. To learn more about the Beta program for this feature, contact your Marqeta representative.
</Note>

Use the `/checkreturn` endpoint to obtain a physical check for a user after terminating their account with a residual balance.

<h2 id="check_return_debit">
  Check return debit
</h2>

**Action:** `POST`\
**Endpoint:** `/checkreturn`

{/* <EndpointCard
title="Check return debit"
path="/checkreturn"
method="post"
/> */}

Use this endpoint to create and start the process of refunding a check.

<h3 id="_request_body">
  Request body
</h3>

| Fields                                                    | Description                                                                                                   |
| --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| card\_holder\_token<br /><br />string<br /><br />Required | Token representation of the cardholder.<br /><br />**Allowable Values:**<br /><br />Existing cardholder token |

<h3 id="_sample_request_body">
  Sample request body
</h3>

The URL below is an example of a request. Simply replace `HOSTNAME` with the URL provided by Marqeta for your organization.

```html HTML lines wrap theme={null}
{
   https://HOSTNAME.marqeta.com/v3/checkreturn/4a13199c-27b1-4d11-9aa3-e2920f5f02f4
}
```

<h3 id="_response_body">
  Response body
</h3>

| Fields                                                      | Description                                                                                                                                                                            |
| ----------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| amount<br /><br />decimal<br /><br />Conditionally returned | Amount to be returned. This will be the user’s total GPA balance. Included in the response if the check return is successful.<br /><br />**Allowable Values:**<br /><br />Format: 0.00 |
| token<br /><br />string<br /><br />Conditionally returned   | Unique identifier of the check return debit. Included in the response if the check return is successful.<br /><br />**Allowable Values:**<br /><br />Existing token                    |

<h3 id="_sample_response_body">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
   "amount": 5.00,
   "token": "f2bd642e-6b2c-4bf5-8be5-6ab781a3736c"
}
```


## Related topics

- [Creating a Dispute](/docs/developer-guides/disputes-create.md)
- [About Credit Account Payments](/docs/developer-guides/about-credit-account-payments.md)
- [ACH Origination](/docs/developer-guides/ach-origination.md)
- [Payments](/docs/core-api/credit-account-payments.md)
- [RiskControl Transaction Event Types](/docs/developer-guides/riskcontrol-transaction-event-types.md)
