How to get JSON from multipart/form-data output

The task is to get document ID from the HTTP API request. API documentation is poor, it only says:

“In case of a successful account creation request, the Server returns a multipart structure that includes 2 parts with corresponding headers. The first part contains the Server’s response in json format, containing the ID and amount of the created account, while the second part includes a file with the invoice in pdf format.”

The request output in MAKE.com looks like this:

[
    {
        "statusCode": 200,
        "headers": [
            {
                "name": "server",
                "value": "nginx"
            },
            {
                "name": "date",
                "value": "Thu, 14 Nov 2024 06:57:43 GMT"
            },
            {
                "name": "content-type",
                "value": "multipart/form-data; boundary=c8fcad4ac2c2a1740d119257b52e63f5"
            },
            {
                "name": "content-length",
                "value": "125051"
            },
            {
                "name": "connection",
                "value": "keep-alive"
            },
            {
                "name": "access-control-allow-origin",
                "value": "*"
            }
        ],
        "cookieHeaders": [],
        "data": "IMTBuffer(125051, binary, 9098a97e0952c15a2db7dfd9ffd78f654b9cda4b): 2d2d63386663616434616332633261313734306431313932353762353265363366350d0a436f6e74656e742d446973706f736974696f6e3a20666f726d2d646174613b206e616d653d226a736f6e220d0a436f6e74656e742d547970653a206170706c69",
        "fileSize": 125051
    }
]

But the output in POSTMAN looks like this and it has JSON with ID in it (“id”: 1938433):

--30286f4bfea97f5fa3092efb99b383f5
Content-Disposition: form-data; name="json"
Content-Type: application/json

{
"id": 1938433,
"sum": "50000",
"service": "�������� ���������"
}
--30286f4bfea97f5fa3092efb99b383f5
Content-Disposition: form-data; name="attachment"; filename="account_1938433.pdf"
Content-Type: application/pdf

How can i get this ID in make?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.