Go
package main import( "context" "os" polargo "github.com/polarsource/polar-go" "log" ) func main() { ctx := context.Background() s := polargo.New( polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Discounts.Delete(ctx, "<value>") if err != nil { log.Fatal(err) } if res != nil { // handle response } }
This response does not have an example.
Delete a discount.
Scopes: discounts:write
discounts:write
You can generate an Organization Access Token from your organization's settings.
The discount ID.
Discount deleted.
Was this page helpful?