Sākumlapa/Api: Atšķirības starp versijām
Pāriet uz navigāciju
Pāriet uz meklēšanu
| 118. rindiņa: | 118. rindiņa: | ||
'''Curl:''' | '''Curl:''' | ||
<pre | <pre> | ||
curl -X 'GET' \ | curl -X 'GET' \ | ||
'https://demo.ramusnet.eu/ramusAccountant/service/api/person/find' \ | 'https://demo.ramusnet.eu/ramusAccountant/service/api/person/find' \ | ||
| 129. rindiņa: | 129. rindiņa: | ||
}' \ | }' \ | ||
-H 'Authorization: Ramus eyJhbGciOiJIUzM4NCJ9...' | -H 'Authorization: Ramus eyJhbGciOiJIUzM4NCJ9...' | ||
</pre> | |||
'''Response body:''' | '''Response body:''' | ||
<code> | |||
{ | { | ||
"total": 1, | "total": 1, | ||
| 144. rindiņa: | 144. rindiņa: | ||
] | ] | ||
} | } | ||
</pre> | |||
== Product == | == Product == | ||
Versija, kas saglabāta 2026. gada 11. marts, plkst. 10.07
Session
Šajā sadaļā ir aprakstīti soļi sesijas uzsākšanai un konfigurēšanai Ramus Accountant API.
1. Lietotāja autorizācija (Login)
Pieprasījums, lai iegūtu sesijas ID un API atslēgu.
Curl:
curl -X 'POST' \
'https://demo.ramusnet.eu/ramusAccountant/service/api/session/login/user' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{ "usernameOrEmail": "vards.uzvards@pasts.lv", "password": "?????????" }'
Request URL:
https://demo.ramusnet.eu/ramusAccountant/service/api/session/login/user
Response body:
{
"error": false,
"message": "Logged In",
"sessionId": "D821FE10B0C80B72D8A471E6C19BD18B",
"apiKey": "Ramus eyJhbGciOiJIUzM4NCJ9..."
}
---
2. Darba vides (Workspace) atrašana
Curl:
curl -X 'GET' \
'https://demo.ramusnet.eu/ramusAccountant/service/api/session/find' \
-H 'accept: application/json' \
-H 'query: { "sessionId": "D821FE10B0C80B72D8A471E6C19BD18B", "workspaceName": "PARAUGS" }' \
-H 'Authorization: Ramus eyJhbGciOiJIUzM4NCJ9...'
Response body:
{
"workspaces": [
{
"serverDataSourceId": 1001,
"name": "demo.ramusnet.lv",
"data": {
"total": 1,
"rows": [
{
"userId": 144332002024,
"workspace": "PARAUGS",
"workspaceId": 150734769495
}
]
}
}
]
}
---
3. Finanšu periodu atrašana
Curl:
curl -X 'GET' \
'https://demo.ramusnet.eu/ramusAccountant/service/api/session/find/periods' \
-H 'accept: application/json' \
-H 'query: { "sessionId": "D821FE10B0C80B72D8A471E6C19BD18B", "serverDataSourceId": "1001" }'
---
4. Sesijas saglabāšana (Store)
Curl:
curl -X 'POST' \
'https://demo.ramusnet.eu/ramusAccountant/service/api/session/store' \
-H 'accept: application/json' \
-H 'query: {
"sessionId": "D821FE10B0C80B72D8A471E6C19BD18B",
"serverDataSourceId": "1001",
"workspaceId": "150734769495",
"financialPeriodId": "641738108062"
}' \
-d ''
Response body:
{
"success": true,
"subject": {
"userId": "144332002024",
"workspaceId": "150734769495",
"financialPeriodId": "641738108062",
"sesionId": "D821FE10B0C80B72D8A471E6C19BD18B"
}
}
Stock
Tax
Authenticate
Document
Comment
Imports
Link
Person
3. Personu meklēšana
Šis pieprasījums ļauj meklēt personas pēc nosaukuma.
Curl:
curl -X 'GET' \
'https://demo.ramusnet.eu/ramusAccountant/service/api/person/find' \
-H 'accept: application/json' \
-H 'query: {
"sessionId": "D821FE10B0C80B72D8A471E6C19BD18B",
"query": { "name": "%ABC%" },
"start": 0,
"length": 20
}' \
-H 'Authorization: Ramus eyJhbGciOiJIUzM4NCJ9...'
Response body:
{
"total": 1,
"rows": [
{
"id": 183982797927,
"code": "40003154167",
"name": "Apgāds Zvaigzne ABC",
"adress": "Krišjāņa Valdemāra iela 6, Rīga, LV-1010"
}
]
}
Product
Report
Custom
Standard