Skip to main content
PATCH
Update an existing reimbursement rate

Authorizations

Authorization
string
header
required

Authorization via a JWT bearer token.

Path Parameters

id
integer
required

The ID of the reimbursement rate to update.

Body

application/json
pricePerKwh
number<float>

Price per kilowatt-hour. Must be between 0.0001 and 10.

Required range: 0.0001 <= x <= 10
currency
enum<string>

ISO 4217 currency code.

Available options:
CHF,
CZK,
DKK,
EUR,
GBP,
NOK,
PLN,
SEK,
USD
Example:

"EUR"

validFrom
string<date-time>

Start date of validity.

validUntil
string<date-time> | null

End date of validity.

Response

Successfully updated the reimbursement rate.

id
integer
required

The reimbursement rate ID.

locationId
integer
required

The ID of the location the rate applies to.

pricePerKwh
number<float>
required

The reimbursement price per kWh.

currency
enum<string>
required

ISO 4217 currency code.

Available options:
CHF,
CZK,
DKK,
EUR,
GBP,
NOK,
PLN,
SEK,
USD
Example:

"EUR"

validFrom
string<date-time>
required

The date from which the rate is valid (UTC ISO 8601).

createdAt
string<date-time>
required

When the rate was created (UTC ISO 8601).

updatedAt
string<date-time>
required

When the rate was last updated (UTC ISO 8601).

validUntil
string<date-time> | null

The date until which the rate is valid (UTC ISO 8601), if bounded.

lockedBy
string | null

Identifier of who locked the rate; only set when locked. References the locking business entity, e.g. an expense report ID.

fileCount
integer

Number of documents attached to the rate; only present on GET responses.