Forum Discussion
Hi Chanyce.
Thank you for the reply.
I have been trying to limit the payload, but i'll be honest I've no idea how to do that.
You can see from below the size of each 'item'. I don't actually need the four large images which are causing the issue, but i've no idea how i can call the payload just for the other items.
Here is how i've set all the fields in the JSON handler 'fetch' request.
Have you got any ideas please?
Many thanks,
Michael
------------------------------
Michael White
------------------------------
Can you tell me what system you're trying to integrate with so I can take a look at the documentation and see if there is a way to limit the scope?
------------------------------
Chayce Duncan
------------------------------
- MichaelWhite12 years agoQrew Member
Hi Chayce.
The third party is Digidentity. The documentation can be found here: https://docs.digidentity.com/#aae3b6c2-c2b0-4250-9335-9a402eaf3dbd
It's under 'Onboarding', 'One-time verification', 'Retrieve report'.
Thank you,
Michael
------------------------------
Michael White
------------------------------- ChayceDuncan2 years agoQrew Captain
From reading through the docs on that call and looking at others, the only thing that might work is to alter the scope when you're getting the credentials. I can't find anything specific to that report request you're doing, but thats the only place where it would be possible to alter the response potentially but also changing it might interfere with the ability in general just to get the report you're querying.
'
The only other thought might be to try to use the Webhook Channel / Make Request step. The general setup will be identical to what you're currently doing with the JSON request, but it might not come with the same response payload max size.
------------------------------
Chayce Duncan
------------------------------- MichaelWhite12 years agoQrew Member
Hi Chayce.
Thank you again for your time to look at this, I really appreciate it.
Unfortunately, I have only been provided with one scope code :(, so I don't think there is anything I could do with that. Do you think there is any way in which I could limit/customise the payload by entering anything in the request body?
As regards the 'Make Request' channel, I have tried this already. For smaller payloads I am unable to work out how to get the data I want (i've tried multiple formats). Here is an example of what is returned:
If I use {{b.json}} it populates the field in QB with this (example)
[{"id":"ef72561a-2b96-45d0-a3c2-8743f0819612","data":{"pseudonym":"ANON-bf210fcd-49ff-4dac-9264-5d7522f212bf","product_name":"eID Substantial (anoniem)","status":"pending","purchase_start_date":"2023-09-08T08:08:02Z","purchase_completed_date":null}}]
If i try to amend to {{b.json.data}} or {{b.json.status}} or {{b.json_data}} or {{b.json_data.status}} I don't get any data returned in the field.
What would I need to just ectract the 'status' to populate a QB field please?
As regards size, it would appear that there is a size restriction on webhook, although I don't know what it is. If I try and GET a completed ID check I get an error message saying the object has exceeded the maximum limit.
I do have the option to GET a pdf report (metadata report) by using the same link and credentials but replacing .json? in the url to .pdf? However, If I try this using webhook 'Make Request' it returns the following:
Is there any other channel I could use to GET the pdf report? I would need to include a header with the Authroization token.
Thank you,
Michael
------------------------------
Michael White
------------------------------