Vai al contenuto principale
DELETE
/
discounts
/
{discount_id}
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

await client.discounts.delete('dsc_qxxEmg5PuM1uNTE0LgkP9');

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parametri del percorso

discount_id
string
obbligatorio

Discount Id

Risposta

Soft-deleted discount (no content)

Ultima modifica il 1 aprile 2026