---
title: "Detach deposit from account"
method: POST
path: "/v1/deposits/accounts/{accountId}/detach"
tags: ["Account attachment"]
---

# Detach deposit from account

`POST /v1/deposits/accounts/{accountId}/detach`

## Request

- Base URL: `https://sandbox.pismolabs.io/passport`
- URL: `https://sandbox.pismolabs.io/passport/v1/deposits/accounts/{accountId}/detach`
- Auth: none declared. Required headers: `AuthorizationToken`

Detach a time deposit product from an account.
This endpoint generates the [Account detached](https://developers.pismo.io/events/docs/deposit-product-account-detach-1) event.

## Path parameters

- `accountId` integer, required

## Headers

- `AuthorizationToken` string, required

## Request body

- DetachRequest
  - `product_id` string, required: Product identifier.
  - `metadata` object: The metadata object contains user-defined key-value pairs that offer additional context or custom information.<br> The platform has no control over its content, but rather controlled by the user.<br> **Note**: This field must not be used to send Personally Identifiable Information (PII), Payment Card Industry (PCI) data, or any sensitive/regulated information. Metadata fields are intended for operational, non-sensitive data only. For sensitive data, use the specific parameters designed for that purpose. For more information, refer to [Get started with Pismo APIs](https://developers.pismo.io/pismo-docs/reference/get-started-with-pismo-apis#metadata).

## Response `204`

Success - No Content

## Other responses

- `400`: Bad request
- `404`: Not Found
- `409`: Conflict.
- `500`: Internal server error

---

[API](https://skmtc.dev/pismo/apis/platform-authentication.md) - [All operations](https://skmtc.dev/pismo/apis/platform-authentication/llms.txt) - [OpenAPI document](https://skmtc.dev/pismo/apis/platform-authentication/revisions/935b62e16de4?raw)
