# Disconnect the workspace's Stripe account

Ends the workspace's use of its connected Stripe account so it can connect another with startPaymentsOnboarding. Workspace owners and admins only. Refused with 409 payments_in_use while a sent document that is still waiting for signatures has a payment field, or while money on any document is still in motion (an open PaymentIntent, or a payment on a document that did not complete whose refund is not yet requested); the response names up to five of those documents. Nothing is deleted at Stripe, and payments already taken keep the account they were taken on, so refunds still reach it. Returns the new state, which is not connected.

Canonical: https://easerix.com/docs/developers/api/sign/payments/disconnectPaymentsAccount

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="sign" operations={[{"path":"/v1/payments/account","method":"delete"}]} />
    </>
  );
}
