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

# Cancel Box Sign Request

export const MultiRelatedLinks = ({sections = []}) => {
  if (!sections || sections.length === 0) {
    return null;
  }
  return <div className="space-y-8">
      {sections.map((section, index) => <RelatedLinks key={index} title={section.title} items={section.items} />)}
    </div>;
};

export const RelatedLinks = ({title, items = []}) => {
  const getBadgeClass = badge => {
    if (!badge) return "badge-default";
    const badgeType = badge.toLowerCase().replace(/\s+/g, "-");
    return `badge-${badge === "ガイド" ? "guide" : badgeType}`;
  };
  if (!items || items.length === 0) {
    return null;
  }
  return <div className="my-8">
      {}
      <h3 className="text-sm font-bold uppercase tracking-wider mb-4">{title}</h3>

      {}
      <div className="flex flex-col gap-3">
        {items.map((item, index) => <a key={index} href={item.href} className="py-2 px-3 rounded related_link hover:bg-[#f2f2f2] dark:hover:bg-[#111827] flex items-center gap-3 group no-underline hover:no-underline border-b-0">
            {}
            <span className={`px-2 py-1 rounded-full text-xs font-semibold uppercase tracking-wide flex-shrink-0 ${getBadgeClass(item.badge)}`}>
              {item.badge}
            </span>

            {}
            <span className="text-base">{item.label}</span>
          </a>)}
      </div>
    </div>;
};

export const Link = ({href, children, className, ...props}) => {
  const localizedHref = localizeLink(href);
  return <a href={localizedHref} className={className} {...props}>
      {children}
    </a>;
};

A Box Sign request, that has not yet been signed or declined, can be cancelled
using the <Link href="/reference/post-sign-requests-id-cancel">cancel Box Sign request endpoint</Link>. Any outstanding signers
will no longer be able to sign the document.

Only the user who created the request, the requester, is able to cancel it. A
request cannot be cancelled if it was declined, fully signed, or the document
is still converting.

<CodeGroup>
  ```sh cURL theme={null}
  curl -i -X POST "https://api.box.com/2.0/sign_requests/<SIGN_REQUEST_ID>/cancel" \
       -H "authorization: Bearer <ACCESS_TOKEN>"
  ```

  ```typescript Node/TypeScript v10 theme={null}
  await client.signRequests.cancelSignRequest(createdSignRequest.id!);
  ```

  ```python Python v10 theme={null}
  client.sign_requests.cancel_sign_request(created_sign_request.id)
  ```

  ```cs .NET v10 theme={null}
  await client.SignRequests.CancelSignRequestAsync(signRequestId: NullableUtils.Unwrap(createdSignRequest.Id));
  ```

  ```swift Swift v10 theme={null}
  try await client.signRequests.cancelSignRequest(signRequestId: createdSignRequest.id!)
  ```

  ```java Java v10 theme={null}
  client.getSignRequests().cancelSignRequest(createdSignRequest.getId())
  ```

  ```java Java v5 theme={null}
  BoxSignRequest signRequest = new BoxSignRequest(api, id);
  BoxSignRequest.Info signRequestInfo = signRequest.getInfo();

  signRequestInfo.cancel();
  ```

  ```python Python v4 theme={null}
  sign_request = client.sign_request(sign_request_id='12345')
  cancelled_sign_request = sign_request.cancel()
  print(f'Cancelled Sign Request status is {cancelled_sign_request.status}')
  ```

  ```cs .NET v6 theme={null}
  BoxSignRequest cancelledSignRequest = await client.SignRequestsManager.CancelSignRequestAsync("12345");
  ```

  ```javascript Node v4 theme={null}
  const signRequest = await client.signRequests.cancelById({
  	sign_request_id: 12345,
  });
  console.log(`Sign request id ${sr.id} cancelled`);
  ```
</CodeGroup>

<RelatedLinks
  title="RELATED APIS"
  items={[
{ label: translate("Cancel Box Sign request"), href: "/reference/post-sign-requests-id-cancel", badge: "POST" }
]}
/>

<RelatedLinks
  title="RELATED GUIDES"
  items={[
{ label: translate("Create Box Sign Request"), href: "/guides/box-sign/create-sign-request", badge: "GUIDE" }
]}
/>
