Skip to main content

Get company credit info

Gets specified company's actual credit information, company credit application status and customers' registration information.

Endpoint

GET /integration/company/{id}/creditInfo

HTTP Request

GET /integration/company/{id}/creditInfo

Query parameters

NameDescriptionRequiredType
idIdentifier of the company to get credit informationYesstring
phoneOptional query parameter if not found by id.Nostring
emailOptional query parameter if not found by id.Nostring

Successful response, Credit Info Object

HTTP 200

{
"creditInfo": {
"accountStatus": "active",
"masterStatus": "active",
"pastDue30": 450.0,
"pastDue60": 0.0,
"pastDue90": 0.0,
"pastDue90Plus": 0.0,
"availableCredit": 5000.0,
"limit": 10000,
"balance": 5000,
"pastDueAmount": 450,
"processingAmount": 0.0,
"creditType": "LOC",
"automatedDrawApprovalInfo": {
"isEnabled": true,
"singleDrawMaxLimit": 10000,
"creditLimitPercentageAvailableToUseAutomatically": 10,
"dailyLimit": 1000000,
"weeklyLimit": 1000000
},
"isCompanyRegistered": true,
"creditApplicationStatus": "applicationNotSubmitted",
"externalCompanyId": "generic_company_id_06052024_11",
"customerInfos": [
{
"externalCustomerId": "generic_customer_id_individual_22",
"isRegistered": true
}
]
}

Erroneous response

HTTP 404

{
"code": "404",
"reason": "Company not found."
}

Responses

CodeDescription
200Successful operation
400Invalid request
401Unauthorized
404Not found
500Unexpected error

Examples

curl https://api.bluetape.com/genericBthubService/integration/company/<companyId>/creditInfo \
-H "X-BlueTape-Key: <your-key>" \
-H "X-Integration-AccountId: <your-account-id>" \
import fetch from 'node-fetch';

const companyId = 'dc506b22c7fa';
const url = `https://api.bluetape.com/genericBthubService/integration/company/${companyId}/creditInfo`;
const options = {
method: 'GET',
headers: {
'X-BlueTape-Key': '<your-key>',
'X-Integration-AccountId': '<your-account-id>',
'Content-Type': 'application/json'
}
};

fetch(url, options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
using Flurl.Http;

var companyId = "dc506b22c7fa";

var url = $"https://api.bluetape.com/genericBthubService/integration/company/{companyId}/creditInfo";

var result = await url
.WithHeader("X-BlueTape-Key", "<your-key>")
.WithHeader("X-Integration-AccountId", "<your-account-id>")
.WithHeader("Content-Type", "application/json")
.GetJsonAsync<CreditInfo>();
import requests

companyId = "dc506b22c7fa"
url = f'https://api.bluetape.com/genericBthubService/integration/company/{companyId}/creditInfo'

headers = {
"X-BlueTape-Key": "<your-key>",
"X-Integration-AccountId": "<your-account-id>",
"Content-Type": "application/json"
}

response = requests.get(url, headers=headers)

print(response.text)

Objects

Credit Information Object

NameDescriptionType
creditInfoThe credit information details.object
isCompanyRegisteredTIs the company already registered at BlueTape.boolean
creditApplicationStatusStatus of company credit application approval.enum
externalCompanyIdThe external id of the company.string
customerInfosArray of customers and their information about registration.array

Credit Information Details Object

NameDescriptionType
accountStatusThe credit account statusstring
masterStatusThe business master statusstring
pastDue30The past due amounts in 1-30 daysdecimal
pastDue60The past due amounts in 31-60 daysdecimal
pastDue90The past due amounts in 61-90 daysdecimal
pastDue90PlusThe past due amounts in 91-... daysdecimal
availableCreditThe available credit. Empty if not approved.decimal
limitThe company approved credit limit. Empty if not approved.decimal
balanceThe unpaid amount of the company creditdecimal
pastDueAmountTotal past due amount for the company. Empty if not approved.decimal
processingAmountThe processing payments amountdecimal
creditTypeThe credit typestring
automatedDrawApprovalInfoThe automated approval informationobject

Automated Draw Approval Information Object

NameDescriptionType
isEnabledIs automated approval enabledboolean
singleDrawMaxLimitMaximum amount of a draw to approve automaticallynumber
creditLimitPercentageAvailableToUseAutomaticallyThe percentage of credit could be used for automatic approvalnumber
dailyLimitDaily limit of amounts to approve automaticallynumber
weeklyLimitLast 7 days limit of amounts to approve automaticallynumber

Customer info

NameDescriptionType
externalCustomerIdThe external id of the customer.string
isRegisteredIs this customer already registered at BlueTape.boolean

Enums

Credit Application Status

applicationNotSubmitted, applicationInReview, applicationRejected, active, inactive

Credit Account Statuses

goodStanding, pastDue, onHold, inCollection, closed

Business Master Statuses

new, active, inCollection, potentiallyFraud, inactive, closed