PassThrough Requests for getting the expense attachment related fields

Sample PassThrough requeat for getting the list of possible values of folderId field in Add attachment to Expense Api for Sage Intacct.

List Folders

A cURL request could look like this:

curl --location 'https://api.getknit.dev/v1.0/passthrough' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'X-Knit-Integration-Id: <YOUR_INTEGRATION_ID>' \
--data '{
  "method": "GET",
  "path": "company-config/folder"
}'

and the response could look like the following:

{
    "success": true,
    "data": {
        "response": {
            "body": "{\"ia::result\": [{\"key\": \"1\",\"id\": \"Bills\",\"href\": \"/objects/company-config/folder/1\"},{\"key\": \"2\",\"id\": \"Credits\",\"href\": \"/objects/company-config/folder/2\"}],\"ia::meta\": {\"totalCount\": 2,\"start\": 1,\"pageSize\": 100,\"next\": null,\"previous\": null}}",
            "headers": {
                "Content-Type": "application/json"
            }
        }
    }
}