PassThrough Requests for getting the Credit Card related fields
Sample PassThrough requeats for getting the list of possible values of creditCardAccountId fields in create and update credit card Apis for QuickBooks.
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": "{\"QueryResponse\":{\"Account\":[{\"Name\":\"Mastercard\",\"SubAccount\":false,\"FullyQualifiedName\":\"Mastercard\",\"Active\":true,\"Classification\":\"Liability\",\"AccountType\":\"Credit Card\",\"AccountSubType\":\"CreditCard\",\"CurrentBalance\":-107.72,\"CurrentBalanceWithSubAccounts\":-107.72,\"CurrencyRef\":{\"value\":\"USD\",\"name\":\"United States Dollar\"},\"domain\":\"QBO\",\"sparse\":false,\"Id\":\"41\",\"SyncToken\":\"1\",\"MetaData\":{\"CreateTime\":\"2025-06-16T09:59:08-07:00\",\"LastUpdatedTime\":\"2025-11-12T23:47:19-08:00\"}},{\"Name\":\"Visa\",\"SubAccount\":false,\"FullyQualifiedName\":\"Visa\",\"Active\":true,\"Classification\":\"Liability\",\"AccountType\":\"Credit Card\",\"AccountSubType\":\"CreditCard\",\"CurrentBalance\":0,\"CurrentBalanceWithSubAccounts\":0,\"CurrencyRef\":{\"value\":\"USD\",\"name\":\"United States Dollar\"},\"domain\":\"QBO\",\"sparse\":false,\"Id\":\"42\",\"SyncToken\":\"0\",\"MetaData\":{\"CreateTime\":\"2025-06-16T10:00:09-07:00\",\"LastUpdatedTime\":\"2025-06-16T10:00:09-07:00\"}}],\"startPosition\":1,\"maxResults\":2},\"time\":\"2025-11-13T01:24:01.821-08:00\"}",
"headers": {
"Date": "Thu, 13 Nov 2025 09:24:01 GMT",
"Content-Type": "application/json",
"Connection": "keep-alive",
"x-spanid": "6fb28fa6-4692-d64c-6bf8-0e474e57a172",
"x-amzn-trace-id": "Root=1-6915a3b1-7c45fb273d439f5341771b4e",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "304",
"Server": "istio-envoy",
"x-envoy-decorator-operation": "v3-facade-service-desired-service.dev-devx-v3facadeservice-usw2-stg-ids.svc.cluster.local:8090/*",
"Strict-Transport-Security": "max-age=31536000",
"intuit_tid": "1-6915a3b1-7c45fb273d439f5341771b4e",
"x-request-id": "1-6915a3b1-7c45fb273d439f5341771b4e",
"content-length": "993"
}
}
}
}Updated about 2 hours ago