Description
Here is a step by step of the basic operation of WS-ARD:
Remark: using the example homologation ws-ard (192.168.54.165)
#
Step 1.It is necessary for the client to authenticate according to the application it uses (GW or Express)
#
1.1 Authentication SiTefGwMethod: POST
Endpoint: https://192.168.54.165:9090/wsard/v1/auth/sitefgw
JSON with access credentials:
#
1.2 Authentication SiTefGw FullMethod: POST
Endpoint: https://192.168.54.165:9090/wsard/v1/auth/sitefgwfull
JSON with access credentials:
#
1.3 Authentication SiTef ExpressMethod: POST
Endpoint: https://192.168.54.165:9090/wsard/v1/auth/sitefexpress
JSON with access credentials:
#
1.4 Authentication SiTef MartinsMethod: POST
Endpoint: https://192.168.54.165:9090/wsard/v1/auth/sitefmartins
JSON with access credentials:
Remark: All these authentication endpoints are pointing to the same application that is a SiTef Express emulator
#
Step 2It returns a token when authenticating with any of the previous endpoints in the following format
This token is used to call the endpoints that should return data from the extract, below is an example of endpoint:
#
2.1 Endpoint SalesMethod: GET
Endpoint: https://192.168.54.165:9090/wsard/v1/vendas?se_cliente=2000217&data=2019-01-10
Remark:
- The Token used for authentication has a time, after this time it becomes invalid.
- The other endpoints are available at: Integration document with WS-ARD.docx
- The endpoint below returns the SE Client that the user has access to:
Method: GET
Endpoint:
http://192.168.54.165:9091/integracao/login?cod_usuario=homologacao@softwareexpress.com.br