Kasutaja tarvikud

Lehe tööriistad



et:api_direct

Erinevused

Siin näed erinevusi valitud versiooni ja hetkel kehtiva lehekülje vahel.

Lõlita võrdlemise vaatele

Both sides previous revisionPrevious revision
Next revision
Previous revision
et:api_direct [2026/04/06 13:52] – [Partial Filtering] toomaset:api_direct [2026/09/01 15:41] (Hetkel kehtiv) – [Getting Your API Key] toomas
Rida 10: Rida 10:
   * API key (obtain from your Directo administrator)   * API key (obtain from your Directo administrator)
   * Basic understanding of REST APIs and HTTP methods   * Basic understanding of REST APIs and HTTP methods
-  * API Resources and Endpint can be found in Postman collection. Response field list managed in Directo ERP. Postman collection can be downloaded here: {{:et:toomas20260401-145732.json|POSTMAN}}+  * API Resources and Endpint can be found in Postman collection. Response field list managed in Directo ERP. Postman collection can be downloaded here: [[:et:api_direct:postman|POSTMAN]]
 ==== Quick Start Guide ==== ==== Quick Start Guide ====
  
Rida 27: Rida 27:
 **Current Configuration:** **Current Configuration:**
  
-  * **baseUrl**: [https://login.directo.ee/apidirect](https://login.directo.ee/apidirect) +  * **baseUrl**: <code>https://login.directo.ee/apidirect</code> 
-  * **version**: 1 (current API version)+  * **version**: <code>1</code> (current API version)
  
 **Example Full URL:** **Example Full URL:**
 <code> <code>
-[https://login.directo.ee/apidirect/v1/items](https://login.directo.ee/apidirect/v1/items)+https://login.directo.ee/apidirect/v1/items
 </code> </code>
  
Rida 48: Rida 48:
  
 ==== Getting Your API Key ==== ==== Getting Your API Key ====
-Contact your Directo system administrator to obtain an API key. Each key is associated with specific permissions and access levels.+If your company doesn't have an API key yet, contact your Directo project manager — they will generate it. 
 + 
 +If a key has already been created, there's no need to request it again: any user with SUPER rights can view it on the employee card under Settings → Integration.
  
 ==== Security Best Practices ==== ==== Security Best Practices ====
Rida 241: Rida 243:
 If you have custom fields defined in your ERP system (visible in the datafields array), you can filter by them: If you have custom fields defined in your ERP system (visible in the datafields array), you can filter by them:
 <code> <code>
-GET {{baseUrl}}/v{{version}}/items?IS_WEIGHT=1 +GET {{baseUrl}}/v{{version}}/items?data_row_code=ART_PROJ 
-GET {{baseUrl}}/v{{version}}/items?VISUAL_VERIFICATION=1+GET {{baseUrl}}/v{{version}}/items?data_row_code=ART_PROJ,BRAND
 </code> </code>
 **How to Find Custom Field Names:** Make a request without filters and examine the datafields array in the response. **How to Find Custom Field Names:** Make a request without filters and examine the datafields array in the response.
Rida 332: Rida 334:
 GET {{baseUrl}}/v{{version}}/sales_contracts GET {{baseUrl}}/v{{version}}/sales_contracts
 GET {{baseUrl}}/v{{version}}/replacementlogs GET {{baseUrl}}/v{{version}}/replacementlogs
 +GET {{baseUrl}}/v{{version}}/users 
 +GET {{baseUrl}}/v{{version}}/recipes 
 +GET {{baseUrl}}/v{{version}}/nettings 
 +GET {{baseUrl}}/v{{version}}/usagelogs 
 +GET {{baseUrl}}/v{{version}}/expenses 
 +GET {{baseUrl}}/v{{version}}/approvals
  
 </code> </code>
  
-Postman collection can be downloaded here: e: {{:et:toomas20260401-145732.json|Directo API postman collection}}+Postman collection can be downloaded here: e: [[:et:api_direct:postman|POSTMAN]]
  
  
Rida 647: Rida 654:
 </code> </code>
  
 +==== Issue: `usagelogs` missing older entries ====
 +
 +**Possible Cause:** Log retention is capped by Administrator settings
 +("Log age in days" / "Log age in transactions" — see
 +[Administraatori seadistused](https://wiki.directo.ee/et/administrator_settings)),
 +not by the API itself.
 +
 +**Solution:** Ask your administrator to check/raise these two settings, or
 +start pulling and archiving `/usagelogs` regularly to keep your own history.
 ===== 📞 Support & Resources ===== ===== 📞 Support & Resources =====
  
et/api_direct.1775472739.txt.gz · Viimati muutnud: 2026/04/06 13:52 persoon toomas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki