PassThrough Requests for getting the Credit Card related fields

Sample PassThrough requeats for getting the list of possible values of locationId and creditCardAccountId fields in create and update credit card Apis for Netsuite.

List Locations

Use the id field, in the response, as the locationId in create and update credit card apis.

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": "/location"
}'

and the response could look like the following:

{
    "success": true,
    "data": {
        "response": {
            "body": "{\"links\":[{\"rel\":\"self\",\"href\":\"https://tstdrv2268550.suitetalk.api.netsuite.com/services/rest/record/v1/location\"}],\"count\":25,\"hasMore\":false,\"items\":[{\"links\":[{\"rel\":\"self\",\"href\":\"https://tstdrv2268550.suitetalk.api.netsuite.com/services/rest/record/v1/location/1\"}],\"id\":\"1\"},{\"links\":[{\"rel\":\"self\",\"href\":\"https://tstdrv2268550.suitetalk.api.netsuite.com/services/rest/record/v1/location/33\"}],\"id\":\"33\"}],\"offset\":0,\"totalResults\":25}\n",
            "headers": {
                "Content-Type": "application/vnd.oracle.resource+json; type=collection; charset=UTF-8",
                "X-N-OperationId": "889cf696-a702-4de7-adad-9a33fdabdeb3",
                "NS_RTIMER_COMPOSITE": "403406182:706172746E6572732D66616C6C2D3031362E70726F642D7068782D6E61352E636F72652E6E732E696E7465726E616C:80",
                "Strict-Transport-Security": "max-age=31536000",
                "X-Content-Type-Options": "nosniff",
                "Pragma": "No-Cache",
                "Cache-Control": "No-Cache",
                "Expires": "0",
                "X-NetSuite-JobId": "63d5c65f-0f21-436d-8958-780c25f1c005",
                "Vary": "User-Agent",
                "Date": "Thu, 13 Nov 2025 10:38:33 GMT",
                "Connection": "keep-alive",
                "Akamai-GRN": "0.77fed417.1763030311.1314e13a",
                "content-length": "3441"
            }
        }
    }
}

List Credit Card Accounts

Use the id field, in the response, as the creditCardAccountId in create and update credit card apis.

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": "/account?q=acctType%20IS%20CredCard"
}'

and the response could look like the following:

{
    "success": true,
    "data": {
        "response": {
            "body": "{\"links\":[{\"rel\":\"self\",\"href\":\"https://tstdrv2268550.suitetalk.api.netsuite.com/services/rest/record/v1/account?q=acctType+IS+CredCard\"}],\"count\":3,\"hasMore\":false,\"items\":[{\"links\":[{\"rel\":\"self\",\"href\":\"https://tstdrv2268550.suitetalk.api.netsuite.com/services/rest/record/v1/account/5044\"}],\"id\":\"5044\"},{\"links\":[{\"rel\":\"self\",\"href\":\"https://tstdrv2268550.suitetalk.api.netsuite.com/services/rest/record/v1/account/129\"}],\"id\":\"129\"},{\"links\":[{\"rel\":\"self\",\"href\":\"https://tstdrv2268550.suitetalk.api.netsuite.com/services/rest/record/v1/account/456\"}],\"id\":\"456\"}],\"offset\":0,\"totalResults\":3}\n",
            "headers": {
                "Content-Type": "application/vnd.oracle.resource+json; type=collection; charset=UTF-8",
                "X-N-OperationId": "e24309cd-d48a-4d1b-80d6-6297d8a0e18e",
                "NS_RTIMER_COMPOSITE": "973293201:706172746E6572732D66616C6C2D3031362E70726F642D7068782D6E61352E636F72652E6E732E696E7465726E616C:80",
                "Strict-Transport-Security": "max-age=31536000",
                "X-Content-Type-Options": "nosniff",
                "Pragma": "No-Cache",
                "Cache-Control": "No-Cache",
                "Expires": "0",
                "X-NetSuite-JobId": "8ed4fdd3-729e-4516-9bba-e3c780ded179",
                "Vary": "User-Agent",
                "Date": "Thu, 13 Nov 2025 09:33:50 GMT",
                "Connection": "keep-alive",
                "Akamai-GRN": "0.e5f53017.1763026428.9d7785d",
                "content-length": "602"
            }
        }
    }
}