Get Credit Limit
curl --request GET \
--url https://api.mansa.xyz/api/v2/liquidity/onboarding/credit-limit \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.mansa.xyz/api/v2/liquidity/onboarding/credit-limit"
headers = {
"x-api-key": "<api-key>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-api-key': '<api-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.mansa.xyz/api/v2/liquidity/onboarding/credit-limit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"available_credit": "999500",
"credit_limit": "1000000",
"used_credit": "500",
"currency": "USDT",
"open_request": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"type": "auth_error",
"code": "invalid_token",
"message": "Bearer token is missing or invalid."
}
}{
"error": {
"type": "rate_limit_error",
"code": "too_many_requests",
"message": "Too many requests. Please retry with exponential backoff."
}
}{
"error": {
"type": "api_error",
"code": "upstream_dependency_error",
"message": "A dependency failed to process the request."
}
}Onboarding
Get Credit Limit
Retrieve current credit limit and usage for the authenticated client.
GET
/
api
/
v2
/
liquidity
/
onboarding
/
credit-limit
Get Credit Limit
curl --request GET \
--url https://api.mansa.xyz/api/v2/liquidity/onboarding/credit-limit \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.mansa.xyz/api/v2/liquidity/onboarding/credit-limit"
headers = {
"x-api-key": "<api-key>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-api-key': '<api-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.mansa.xyz/api/v2/liquidity/onboarding/credit-limit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"available_credit": "999500",
"credit_limit": "1000000",
"used_credit": "500",
"currency": "USDT",
"open_request": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"type": "auth_error",
"code": "invalid_token",
"message": "Bearer token is missing or invalid."
}
}{
"error": {
"type": "rate_limit_error",
"code": "too_many_requests",
"message": "Too many requests. Please retry with exponential backoff."
}
}{
"error": {
"type": "api_error",
"code": "upstream_dependency_error",
"message": "A dependency failed to process the request."
}
}
