Skip to main content

Retrieve Credit Usage

  • Retrieves the usage of currently available credits.

🔔 API Update & Backward Compatibility Notice

The TRADLINX Ocean Visibility API may be updated from time to time to improve service quality, expand data coverage, and introduce new features.

When updating the API, we prioritize the stable operation of existing integrations and follow backward-compatible change principles, such as adding new fields.

Accordingly, we recommend that client systems be implemented in a backward-compatible manner so that they can continue to operate normally even when unknown or newly added fields are included in API responses.

If any changes may affect existing integrations, we will provide advance notice.

Request

GET /partners/track/v3/credits/usage
curl -X GET "https://api.tradlinx.com/partners/track/v3/credits/usage" \
-H "tx-clientid: [Client ID]" \
-H "tx-apikey: [API Key]" \
-H "Content-Type: application/json"

Response

{
"api_version": "v3",
"transaction_time": "2025-07-08T08:01:16.533152",
"content": [
{
"creditType": "T_CREDIT",
"credit": 100,
"usedCredit": 30,
"remainCredit": 70,
"startAt": "2024-12-22T15:00:00",
"expiredAt": "2029-12-22T15:00:00"
},
{
"creditType": "PLAN_CREDIT",
"credit": 500000,
"usedCredit": 5950,
"remainCredit": 494050,
"startAt": "2025-06-30T15:00:00",
"expiredAt": "2025-07-31T15:00:00"
}
]
}

Response Body

FieldTypeDescriptionRemark
api_versionstringAPI versionv3
contentCreditResponse[]Available credit info
transaction_timestringResponse timestampyyyy-MM-dd'T'HH:mm:ss.SSSSSS

CreditResponse — Available Credit Info

FieldTypeDescription
creditTypestringType of credit (see list below)
creditnumberAllocated amount of available credits
usedCreditnumberUsed amount of available credits
remainCreditnumberRemaining amount of available credits
startAtstringStart date of the credit availability period (yyyy-MM-dd'T'HH:mm:ss)
expiredAtstringEnd date of the credit availability period (yyyy-MM-dd'T'HH:mm:ss)

Credit Types

CodeDescription
PLAN_CREDITCredits provided during the plan period
T_CREDITCredits available outside of the plan period

400 Error

{
"error_detail": "This feature is not supported in your plan.",
"transaction_time": "2025-03-20T05:42:27.123243"
}

500 Error

{
"status": 500,
"type": "Internal Server Error",
"message": "Internal server error. Please try again in a few minutes."
}