---
title: s_salary_timecard_edit
url: 'https://gidas.saver.lt/api/s_salary_timecard_edit'
markdown: 'https://gidas.saver.lt/api/s_salary_timecard_edit.md'
date: '2021-08-05'
description: 'Last update 2021-08-04 This method is for creating / editing timecard of RIVILE salary calculation module. All parameters are expected via HTTP POST. Mandatory parameters Name Description Notes session_id Session id login RIVILE username pass RIVILE password hashed in MD5 list Jso…'
taxonomy:
  category:
    - docs
---

[](#)  [ Pradžia ](https://gidas.saver.lt/)     [ API ](https://gidas.saver.lt/api)      s\_salary\_timecard\_edit    

# s\_salary\_timecard\_edit

Last update 2021-08-04

This method is for creating / editing timecard of RIVILE salary calculation module. All parameters are expected via HTTP POST.

#### Mandatory parameters

| Name | Description | Notes |
|---|---|---|
| **session\_id** | Session id |  |
| **login** | RIVILE username |  |
| **pass** | RIVILE password hashed in **MD5** |  |
| **list** | Json list with timecard data. Similar structure as from method **s\_salary\_timecard\_edit** |

#### Additional parameters

| Name | Description | Notes |
|---|---|---|
| **lang** | Web service response language. **EN** **LT** or **RU** |  |

#### list

| Name | Description | Notes |
|---|---|---|
| **employeeDep** | Employee department | a16\_kodas\_is |
| **year** | Timecard year | a16\_date |
| **month** | Timecard month | a16\_date |
| **timecardName** | Timecard name | a16\_pav |
| **timecards** | List with time-card data |

#### timecards

| Name | Description | Notes |
|---|---|---|
| **calendarCode** | Calendar code | a17\_kodas\_la |
| **employeeCode** | Employee code | a17\_kodas\_tb |
| **days** | List with days data |

#### days

| Name | Description | Notes |
|---|---|---|
| **dayName** | Day name | a17\_d01-a17\_d31 header |
| **dayCode** | Day code | a17\_d01-a17\_d31 value |
| **dayHours** | List with day hour data |

#### dayHours

| Name | Description | Notes |
|---|---|---|
| **hourName** | Hour name | a18\_v01-a18\_v31 header |
| **hourCode** | Hour code | ? |
| **hourObject** | Hour code | ? |
| **hourValue** | Hour value | a18\_v01-a18\_v31 value |

#### Web service returns

| Name | Description | Notes |
|---|---|---|
| **status** | Web service status |  |
| **description** | Status description |  |
| **login** | RIVILE username |  |
| **list** | List with data |  |

#### Web service status list

| Name | Description |
|---|---|
| **00** | Ok |
| **01** | No parameter **session\_id** |
| **02** | No parameter **login** |
| **03** | No parameter **pass** |
| **04** | Login failed |
| **05** | No or wrong parameter **year** |
| **06** | No or wrong parameter **month** |
| **07** | No or wrong parameter **employeeDep** |
| **08** | DB connect error |
| **09** | Wrong parameter lang , values **LT**,**EN**,**RU** only. |
| **10** | No parameter **list** |
| **11** | Parameter **list** is not json list |
| **12** | **employee** not found |
| **14** | Error in parameter **dayName**. Possible values ​​d01 d02 ... d31 |
| **15** | Parameter **dayCode** error. Value not found |
| **16** | Error in parameter **hourName**. Possible values ​​d01 d02 ... d31 |
| **17** | Parameter **hourCode** error. Value not found |
| **18** | Parameter **hourValue** error. Possible values 1-24 |
| **19** | Timecard is confirmed and cannot be edited |
| **20** | No or wrong parameter : **calendarCode** |
| **21** | No parameter : **timecards** |
| **22** | No parameter : **employeeCode** |
| **98** | SQL error |

 [ ](https://gidas.saver.lt/api/s_salary_timecard) [](https://gidas.saver.lt/api/s_todo_list)

---

## Navigation

- Parent: [API](https://gidas.saver.lt/api.md)
- Previous: [s_salary_timecard](https://gidas.saver.lt/api/s_salary_timecard.md)
- Next: [s_todo_list](https://gidas.saver.lt/api/s_todo_list.md)
