How to retrieve remaining credits via Shipsgo API ?
You can see your remaining credits in the API response headers while making POST requests. The value is returned as X-Shipsgo-Credits-Remaining.

This information is also available in the API documentation.