Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
cgarib
Partner - Contributor
Partner - Contributor

How to implement two APIs?, header and details

Hi,

I´m working with API Rest related to an ERP. I want to use accounting information from it and the ERP has two API Rest, the first one generates a list of accounting vouchers (headers) with 3 key fields: Year, Voucher Type and Voucher number. In order to obtain accounting details I have to use a second API rest that delivers details of each voucher (accounts, debit value, credit value, description, etc) using Year, Voucher Type and voucher number fields as parameters.

Can you please help me how can I have all the information of the year if the second API delivers only details of one record of the first API response?. I suppose that I have to implement a bucle (maybe), but I´m not sure neither how to do it.

 

Information of APIs: Swagger UI (defontana.com)

Endpoints: GetVoucherList (headers), GetVoucher (details)

 

Thanks a lot !!!!!!

Labels (1)
0 Replies