---
title: "POST Disable discount code"
description: "Disables a discount code from the provider (Stripe, Shopify, etc.)."
last_updated: "2026-10-05T05:08:28.509044+00:00"
canonical_url: "https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/api/cron/disablediscountcode"
---

<APIEndpoint
  method={"POST"}
  path={"/api/cron/discount-codes/disable"}
  summary={"Disable discount code"}
  description={"Disables a discount code from the provider (Stripe, Shopify, etc.)."}
  deprecated={false}
  baseUrl={""}
/>

## Request Body

Payload with code, programId, and provider

<APIRequestBody
  contentType={"application/json"}
  required={true}
  schema={{"type":"object"}}
/>

## Responses

<APIResponse
  statusCode={"200"}
  description={"Successful response"}
  contentType={"application/json"}
/>

## Try It

<APIPlayground
  method={"POST"}
  path={"/api/cron/discount-codes/disable"}
  parameters={[]}
  requestBody={{"contentType":"application/json","required":true,"description":"Payload with code, programId, and provider","schema":{"type":"object"}}}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/llms.txt) for all pages in this wiki.
