Skip to main content
POST
Create a new reimbursement rate

Authorizations

Authorization
string
header
required

Authorization via a JWT bearer token.

Body

multipart/form-data
locationId
integer
required

ID of the location.

pricePerKwh
number<float>
required

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

Required range: 0.0001 <= x <= 10
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

Start date of validity.

validUntil
string<date-time> | null

End date of validity.

files
file[] | null

File attachments associated with the rate.

Response

Successfully created 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.