---
title: s_client_edit
url: 'https://gidas.saver.lt/api/s_client_edit'
markdown: 'https://gidas.saver.lt/api/s_client_edit.md'
date: '2022-05-11'
description: 'Last update 2020-04-05 This method can be used for creation - modification of Saver clients. All parameters are expected via HTTP POST. M Mandatory field if new client is created Mandatory parameters Name Description session_id Session id login RIVILE username pass RIVILE password ha…'
taxonomy:
  category:
    - docs
---

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

# s\_client\_edit

Last update 2020-04-05

This method can be used for creation - modification of Saver clients. All parameters are expected via HTTP POST.

`M` Mandatory field if new client is created

#### Mandatory parameters

| Name | Description |
|---|---|
| **session\_id** | Session id |
| **login** | RIVILE username |
| **pass** | RIVILE password hashed in **MD5** |
| **clientCode** | Recomended use the same as clientCompanyCode (n08\_kodas\_ks) Identity field. |

#### Additional optional parameters

| Name | Description | Notes |
|---|---|---|
| **clientName** | Client name `M` | n08\_pav 64 |
| **clientCompanyCode** | Client company code.Must be value **“N.D.”** if company code is unknown. `M` | n08\_im\_kodas 51 |
| **clientVatCode** | Client VAT code. Must be value **“N.D.”** if there is no VAT code. `M` | n08\_pvm\_kodas 52 |
| **clientAdress** | Client adress `M` | n08\_adr 67 |
| **clientPostCode** | Post Code of the client | n08\_pastas 53 |
| **clientSiteCode** | There is addiotional adress list that can be used to fulfill client adresses. Code from this list must be used | n08\_kodas\_vs 54 |
| **clientShortName** | Short name for the client | n08\_rezervas 65 |
| **clientRepresentative** | Client sales representative | n08\_atstovas 68 |
| **clientEmail** | Client email adress | n08\_e\_mail 69 |
| **clientPhone** | Client phone | n08\_tel 70 |
| **clientMobilePhone** | Client mobile phone | n08\_mob\_tel 71 |
| **clientGroup** | Client group code | n08\_kodas\_gs 55 |
| **clientNotes** | Notes | z08\_s\_pastabos 66 |
| **clientWebLink** | Web link | n08\_c\_nuoroda 73 |
| **clientDescription** | Description | z08\_aprasymas 74 |
| **clientRating** | Rating | z08\_rating 72 |
| **kodas\_rs** | client assigned to user | n08\_kodas\_ms\_p 80 |
| **clientEmployees** | Number fo client employees | z08\_darb |
| **clientTurnover** | Total turnover of the client (not only from us) | z08\_apyvarta |
| **clientDaysActivity** | Number of days before client gets inactive status | z08\_active |
| **clientSales** | Number of days for sales calculation |
| **clientIban** | Client Bank account number . For new client only | n33\_s\_kodas |

#### Web service returns

| Name | Description | Notes |
|---|---|---|
| **status** | Web service status |  |
| **description** | Status description |  |
| **login** | RIVILE username |  |
| **clientCode** |  |  |

#### 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 parameter **clientCode** |
| **06** | Client not found |
| **07** | Optional field validation error with explanation |
| **98** | DB connect error |
| **99** | Web service POST parameters error |

Todo : Tags,Logistic codes

 [ ](https://gidas.saver.lt/api/s_client_view) [](https://gidas.saver.lt/api/s_client_login)

---

## Navigation

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