Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Discount Id
Response
Soft-deleted discount (no content)
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
await client.discounts.delete('discount_id');
Delete a discount from your account.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
await client.discounts.delete('discount_id');
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Discount Id
Soft-deleted discount (no content)
Was this page helpful?