---
title: docuflow BAPI Web Services
slug: docuflow-guides/docuflow-bapi-web-services
createdAt: 2021-09-01T00:03:15.000Z
---

Docuflow provides two end points to access SAP BAPI's. Using the GET request on the "any" endpoint we can retrieve what data is available to the developer. Docuflow BAPI web services use basic authorization with a default username: **docuflow**, and a default password: **docuflow**. Ensure SSL cert validation is disabled prior to accessing the web services.



The following examples can be imported into Insomnia Rest Client via this link: [https://docuflow.box.com/s/em0ckv2zarcai15cr5az6rewxvfw18p5](https://docuflow.box.com/s/ebxqa3tfrwbiur9fxekncx5uc2g1lb65)

For example using a get request,&#x20;

[https://localhost:82/bapi/any?bapi=BAPI\_INCOMINGINVOICE\_CREATE](https://localhost:82/bapi/any?bapi=BAPI_INCOMINGINVOICE_CREATE)&#x20;

would return the following data below:

[https://jsoneditoronline.org/#left=cloud.b9e0a63872034234850ac9de5709b564](https://jsoneditoronline.org/#left=cloud.b9e0a63872034234850ac9de5709b564)

We can use this response to learn what all the available fields/data are available in that particular bapi.

To send data to BAPI\_INCOMINGINVOICE\_CREATE we would send a post request to [https://localhost:82/bapi/any](https://localhost:82/bapi/any) using the json body included in this link:&#x20;

[https://jsoneditoronline.org/#left=cloud.dbd7f72e2ade41eab9301c17081b2a04](https://jsoneditoronline.org/#left=cloud.dbd7f72e2ade41eab9301c17081b2a04)

You should see the following json response here

[https://jsoneditoronline.org/#left=cloud.73c35d070cb546f683dc05e82865cac1](https://jsoneditoronline.org/#left=cloud.73c35d070cb546f683dc05e82865cac1)

Notice in the export parameters the response given from the BAPI that was executed

::Image[]{src="https://api.archbee.com/api/optimize/1hH4CNQG9tP4YS-TB-TC6/HWik-rlIXPsBLpEObmHiu_image.png" size="48" width="309" height="247" position="center" showCaption="false"}



Another example is given here with BAPI\_PO\_CHANGE using post.

[https://jsoneditoronline.org/#left=cloud.b9a0aeb968344aeb94b1153ca69b1959](https://jsoneditoronline.org/#left=cloud.b9a0aeb968344aeb94b1153ca69b1959)

and it's corresponding response,

[https://jsoneditoronline.org/#left=cloud.d6ef93f919e443d7a8153c1fd6b856ec](https://jsoneditoronline.org/#left=cloud.d6ef93f919e443d7a8153c1fd6b856ec)



Common tables to look at for response from SAP are the **return** table, and th&#x65;**&#x20;export parameters**.











