Modify an existing Discount

When modifing an existing Discount, the id field must be given as a path parameter but discarded in the body.

Log in to see full request history
Path Params
string
required

The id of the entity

Query Params
string
Defaults to null

Use the store level properties if any exist otherwise the global properties are used

Body Params

Discount

string
required
length ≤ 64

Unique identifier for this discount

string
required
length ≤ 64

Name of this discount

integer

Describes the type of discount

integer

The percentage amount for this discount times 100, e.g 5000 equals 50%.
This is only effective if type equals 2.

integer

The discounted amount in smallest monetary unit (Cent/Rappen).
This is only effective if type equals 1.

boolean

If this is set, the amount can be set freely during the payment process.

string | null

An external PLU has no meaning within helloTESS! and can be used for your reference, e.g. matching external id's.

boolean

Is this discount active?

Responses

401

You are not unauthorized

404

Not Found

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json