Skip to main content
PUT
Update a voucher group

Path Parameters

id
integer
required

Voucher Group ID

Body

application/json

Voucher group update data

name
string

name

Example:

"Kokbjerg"

notes
string
Example:

"notes"

perKwh
number | null

price per kwh

Example:

3

currency
string | null

pricing currency

Example:

"DKK"

isSpotPriceBased
boolean
Example:

false

spotPriceMargin
number | null
Example:

0.5

spotPriceMarginPct
number | null
Example:

0.5

spotPriceMinimum
number | null
Example:

0.5

Response

Voucher Group update response

id
integer
required

id

Example:

1

name
string
required

name

Example:

"Kokbjerg"

perKwh
number | null
required

price per kwh

Example:

3

currency
string | null
required

pricing currency

Example:

"DKK"

isSpotPriceBased
boolean
required
Example:

false

spotPriceMargin
number | null
required
Example:

0.5

spotPriceMarginPct
number | null
required
Example:

0.5

spotPriceMinimum
number | null
required
Example:

0.5

createdAt
string<timestamp>
required

Created date

Example:

"2021-04-20T14:38:20.000Z"

updatedAt
string<timestamp>
required

Updated date

Example:

"2021-04-20T14:38:20.000Z"

voucherCount
integer
required
Example:

1