Fetch Account Credit Pools
1 min
GET
https://api.nue.io/customers/{customerId}/account-credit-pools
Path Parameters
- customerIdstringrequiredDescription
Query Parameters
- accountPoolIdsstringDescription
- pageintegerDescriptionDefault1Minimum1
- limitintegerDescriptionDefault100Minimum1Maximum500
Responses
200
- objectExample
{ "status": "SUCCESS", "data": [ { "balance": 240000, "createdById": "ddd60c9f-e694-4760-b832-f720ebf22a53", "createdDate": "2026-01-10T19:12:10.465Z", "creditPool": { "committed": true, "createdById": "ddd60c9f-e694-4760-b832-f720ebf22a53", "createdDate": "2026-01-08T02:10:10.259Z", "creditTypeId": "6984e433-0151-4351-b9e2-b7f557672707", "id": "d3496002-9430-4f8d-9e67-6c6ac8793bd7", "isDefault": false, "lastModifiedById": "ddd60c9f-e694-4760-b832-f720ebf22a53", "lastModifiedDate": "2026-01-08T02:10:10.259Z", "name": "Default Committed Credit Pool" }, "creditPoolId": "d3496002-9430-4f8d-9e67-6c6ac8793bd7", "creditTypeId": "6984e433-0151-4351-b9e2-b7f557672707", "customerId": "001RK00001jt2i1YAA", "id": "474935a8-16cc-46a6-927d-74c962cf460f", "lastModifiedById": "ddd60c9f-e694-4760-b832-f720ebf22a53", "lastModifiedDate": "2026-01-10T19:13:30.027Z", "name": "Default Committed Credit Pool", "status": "Active" } ], "warnings": [], "pagination": { "page": 1, "limit": 100, "total": 1, "totalPages": 1, "hasNext": false, "hasPrevious": false } }- statusstring<SUCCESS>AllowedSUCCESS
- dataobject[]
- idstringDescription
- namestringDescription
- balancenumberDescription
- statusstringDescription
- customerIdstringDescription
- creditPoolIdstringDescription
- creditTypeIdstringDescription
- creditPoolobjectDescription
- idstring
- namestring
- committedbooleanDescription
- isDefaultboolean
- creditTypeIdstring
- createdDatestring<date-time>Formatdate-time
- lastModifiedDatestring<date-time>Formatdate-time
- createdDatestring<date-time>Formatdate-time
- createdByIdstring
- lastModifiedDatestring<date-time>Formatdate-time
- lastModifiedByIdstring
- warningsobject[]
- codestringDescription
- messagestringDescription
- paginationobject
- pageinteger
- limitinteger
- totalinteger
- totalPagesinteger
- hasNextboolean
- hasPreviousboolean
401
- UnauthorizedErrorDescription
- statusDescription
- errorstringDescription
- errorCodestringDescription
- errorTypestringDescription
- messagestringDescription
404
- NotFoundErrorDescription
- statusintegerDescription
- errorstringDescription
- messagestringDescription
curl
curl --request GET \
--url 'https://api.nue.io/customers/{customerId}/account-credit-pools?page=1&limit=100' \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.nue.io/customers/{customerId}/account-credit-pools?page=1&limit=100", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.nue.io/customers/{customerId}/account-credit-pools?page=1&limit=100")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.nue.io/customers/{customerId}/account-credit-pools?page=1&limit=100"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Successfully retrieved account credit pools
{
"status": "",
"data": [
{
"id": "",
"name": "",
"balance": 0,
"status": "",
"customerId": "",
"creditPoolId": "",
"creditTypeId": "",
"creditPool": {
"id": "",
"name": "",
"committed": false,
"isDefault": false,
"creditTypeId": "",
"createdDate": "",
"lastModifiedDate": ""
},
"createdDate": "",
"createdById": "",
"lastModifiedDate": "",
"lastModifiedById": ""
}
],
"warnings": [
{
"code": "",
"message": ""
}
],
"pagination": {
"page": 0,
"limit": 0,
"total": 0,
"totalPages": 0,
"hasNext": false,
"hasPrevious": false
}
}401
// Unauthorized - Authentication information is missing or invalid
{
"status": "",
"error": "",
"errorCode": "",
"errorType": "",
"message": ""
}404
// Not Found - Customer was not found
{
"status": 0,
"error": "",
"message": ""
}