# Does WebAPI/REST API support articles or only "documents"?

**URL:** <https://forum.metasfresh.org/t/does-webapi-rest-api-support-articles-or-only-documents/359>\
**Category:** Developers\
**Tags:** howto\
**Created:** [April 20, 2017, 4:52pm UTC](https://forum.metasfresh.org/t/does-webapi-rest-api-support-articles-or-only-documents/359 "2017-04-20T16:52:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergio](https://forum.metasfresh.org/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@sergio](https://forum.metasfresh.org/u/sergio)\
**Post date:** [April 20, 2017, 4:52pm UTC](https://forum.metasfresh.org/t/does-webapi-rest-api-support-articles-or-only-documents/359/1 "2017-04-20T16:52:19Z")

</div>

Good evening to everyone.

I am testing Metasfresh using Amazon EC2 (Cloud, WebUI and VPN Swing).

According to the following link [http://docs.metasfresh.org/howto\_collection/Wie\_sieht\_die\_Architektur\_aus.html](http://docs.metasfresh.org/howto_collection/Wie_sieht_die_Architektur_aus.html),

- WebUI and WebAPI are two different “layers” of metasfresh;
- WebUI use WebAPI.

1. Is WebAPI the only REST API available?
2. Is WebAPI available outside WebUI and swagger-ui.html?
3. Is possible to use WebAPI to retrieve a list of documents?
4. How could I find the Id of the document to retrieve/change?  
5A) Is possible to use WebAPI to retrieve a list of articles?  
5B) If 4A is not possible, is it possible to load articles using CSV?  
5C) If 4A is not possible, is it possible to update articles prices and quantities using CSV?  
5D) If 4A and 4C are not possible, is it possible to use Java + SQL code to update articles prices and quantities?

Thank you in advance for your time.

---

<div class="post-metadata">

**Author:** ![metasnw](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/metasnw/32/23_2.png) [@metasnw](https://forum.metasfresh.org/u/metasnw)\
**Post date:** [April 20, 2017, 7:44pm UTC](https://forum.metasfresh.org/t/does-webapi-rest-api-support-articles-or-only-documents/359/2 "2017-04-20T19:44:13Z")

</div>

hi Sergio,

here are some answers as far as I can give them:

> [@sergio](#):
>
> 1. Is WebAPI the only REST API available?  
> yes. for now.
> 
> 2. Is WebAPI available outside WebUI and swagger-ui.html?
> 
> 3. Is possible to use WebAPI to retrieve a list of documents?  
> afaik Not yet. We are planning to extend the API to support operations like that.
> 
> 4. How could I find the Id of the document to retrieve/change?  
> see 3)
> 
> 5A) Is possible to use WebAPI to retrieve a list of articles?  
> see 3)
> 
> 5B) If 4A is not possible, is it possible to load articles using CSV?  
> yes, via Java client. see docs here: [Java Client Kurzanleitungen](http://docs.metasfresh.org/pages/howto/index_de) =\> “Datenimport”
> 
> 5C) If 4A is not possible, is it possible to update articles prices and quantities using CSV?  
> partially yes, you can update prices via Java client. see docs here: [Java Client Kurzanleitungen](http://docs.metasfresh.org/pages/howto/index_de) =\> “Datenimport”. BUT you can not update quantitites.
> 
> 5D) If 4A and 4C are not possible, is it possible to use Java + SQL code to update articles prices and quantities?  
> In general: With Java and SQL you can do anything you want in metasfresh. Its more the question if that is the best approach or if there are simpler solutions.

Hope, my answers helped.

Cheers,  
Norbert
