Retrieve a list of payments via REST-API (SOLVED)

If you think that something doesn't work in Aware IM post your message here
Post Reply
jannes
Posts: 89
Joined: Tue Jul 02, 2019 12:22 pm

Retrieve a list of payments via REST-API (SOLVED)

Post by jannes »

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 ?

api_mollie_paymentlist.json_as_.zip
Rename *.zip to *.json
(25.03 KiB) Downloaded 7 times
levels.png
levels.png (4.99 KiB) Viewed 107 times
Last edited by jannes on Tue Jun 21, 2022 7:56 am, edited 1 time in total.
BobK
Posts: 508
Joined: Thu Jan 31, 2008 2:14 pm
Location: Cincinnati, Ohio, USA

Re: Retrieve a list of payments via REST-API

Post by BobK »

Having multiple levels should not be an issue.

Can you post the details of your set up.
Bob
jannes
Posts: 89
Joined: Tue Jul 02, 2019 12:22 pm

Re: Retrieve a list of payments via REST-API

Post by jannes »

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.
Attachments
REST.zip
(49.79 KiB) Downloaded 6 times
jannes
Posts: 89
Joined: Tue Jul 02, 2019 12:22 pm

Re: Retrieve a list of payments via REST-API

Post by jannes »

The workaround is to declare attributes twice.

See the attached BSV.

It's strange behaviour.
Investigation is in progress.

To be continued.

= Jannes
Attachments
REST2.zip
(48.96 KiB) Downloaded 6 times
jannes
Posts: 89
Joined: Tue Jul 02, 2019 12:22 pm

Re: Retrieve a list of payments via REST-API (SOLVED)

Post by jannes »

Mail from Vladmir :
the bug is confirmed. It is now fixed and the fix will be available in the next maintenance build. Thank you.
Post Reply