Skip to main content

Fixed hourly pays API

Content

Fixed hourly pays collection:

Single Fixed hourly pay

Fixed hourly pays collection

Fixed hourly pays index

GET /api/v0/fixed-hourly-pays

Request

Index behaviourDefinition
Paginated by defaultNo
SortingNo
FiltersNo
Embedded-
GET /api/v0/fixed-hourly-pays HTTP/1.1
Content-Type: application/json

Response

200 OK

GET /api/v0/fixed-hourly-pays HTTP/1.1
Content-Type: application/json

{
"items": [
{
"id": 4,
"price": {
"CZK": {
"value": 200,
"formatted": "200,00 Kč"
}
},
"valid_from": "2020-12-31T23:00:00.000000Z",
"valid_to": null,
"created_at": "2022-11-30T13:18:19+0100",
"updated_at": "2022-11-30T13:18:19+0100",
"_links": [
{
"href": "/api/v0/fixed-hourly-pays/4",
"rel": "self",
"type": "GET"
}
]
}
]
}

Fixed hourly pay detail

GET /api/v0/fixed-hourly-pays/{fixed_hourly_pay_id}

Request

Index behaviourDefinition
Paginated by defaultNo
SortingNo
FiltersNo
Embedded-
GET /api/v0/fixed-hourly-pays/4 HTTP/1.1
Content-Type: application/json

Response

200 OK

GET /api/v0/fixed-hourly-pays/4 HTTP/1.1
Content-Type: application/json

{
"id": 2,
"value": 100,
"currency_id": "CZK",
"valid_from": "2020-12-31T23:00:00.000000Z",
"valid_to": null,
"created_at": "2022-11-30T16:58:40+0100",
"updated_at": "2022-11-30T16:58:40+0100",
"_links": [
{
"href": "/api/v0/fixed-hourly-pays/2",
"rel": "self",
"type": "GET"
}
]
}

Create fixed hourly pay

POST /api/v0/fixed-hourly-pays

Request

ParamTypeDescriptionRequirements
valuedecimalAmount in currencyRequired. Must be minimum 0 digits, max 20 digits
currency_idstringCurrency IDRequired. Must be string of 3 characters
valid_fromdateDate from hourly pay is validRequired.
valid_todateDate to hourly pay is validPresent. Could be empty. this means that this hourly pay is current.
POST /api/v0/fixed-hourly-pays HTTP/1.1
Content-Type: application/json

Response

200 OK

POST /api/v0/fixed-hourly-pays HTTP/1.1
Content-Type: application/json

{
"id": 3,
"value": 100,
"currency_id": "CZK",
"valid_from": "2019-12-31T23:00:00.000000Z",
"valid_to": "2020-12-30T23:00:00.000000Z",
"created_at": "2022-11-30T17:00:55+0100",
"updated_at": "2022-11-30T17:00:55+0100",
"_links": [
{
"href": "/api/v0/fixed-hourly-pays/3",
"rel": "self",
"type": "GET"
}
]
}

Delete fixed hourly pay

DELETE /api/v0/fixed-hourly-pays/1

Request

DELETE /api/v0/fixed-hourly-pays/1 HTTP/1.1
Content-Type: application/json

Response

204 No content