I'm struggling to retrieve a list of payments via REST-API.
The structure of the response has 5 levels.
Could that be the problem ?
Retrieve a list of payments via REST-API (SOLVED)
Retrieve a list of payments via REST-API (SOLVED)
Last edited by jannes on Tue Jun 21, 2022 7:56 am, edited 1 time in total.
Re: Retrieve a list of payments via REST-API
Having multiple levels should not be an issue.
Can you post the details of your set up.
Can you post the details of your set up.
Bob
Re: Retrieve a list of payments via REST-API
I attached a small BSV. It can be used to discover the issue.
It needs an API-key to be entered in SystemSettings. I will send it via PM.
The zip also contains the expected JSON-file.
Request "GetListPayments" will not return the “_embedded” payments.
It returns only the “count”.
The other request “GetPayment” works fine. It is retrieving just 1 payment.
ps.
I also asked support to assist.
It needs an API-key to be entered in SystemSettings. I will send it via PM.
The zip also contains the expected JSON-file.
Request "GetListPayments" will not return the “_embedded” payments.
It returns only the “count”.
The other request “GetPayment” works fine. It is retrieving just 1 payment.
ps.
I also asked support to assist.
- Attachments
-
- REST.zip
- (49.79 KiB) Downloaded 848 times
Re: Retrieve a list of payments via REST-API
The workaround is to declare attributes twice.
See the attached BSV.
It's strange behaviour.
Investigation is in progress.
To be continued.
= Jannes
See the attached BSV.
It's strange behaviour.
Investigation is in progress.
To be continued.
= Jannes
- Attachments
-
- REST2.zip
- (48.96 KiB) Downloaded 816 times
Re: Retrieve a list of payments via REST-API (SOLVED)
Mail from Vladmir :
the bug is confirmed. It is now fixed and the fix will be available in the next maintenance build. Thank you.
the bug is confirmed. It is now fixed and the fix will be available in the next maintenance build. Thank you.