Credit API

Get available credit

This API is used to check available credit in your account. Placing an order requires some amount of credits in your account. To check whether you have sufficient credits in your account before making an order, you need to compare your credit balance with the quote for the translation order.

Use the following method to get your available credit balance:

Request Method  : GET 
ContentType : application/x-www-form-urlencoded
Request Url : API_BASE_URL/API_VERSION/credit/
Auth : Yes                    


Here’s a PHP SDK Example for the same:

require_once 'tbh-sdk/TbhClient.php';
$source_data = $apiclient->getCredit();                   


Replace CLIENT_ID, CLIENT_SECRET, CLIENT_PUBLIC with your credentials. To learn more about this, click here.

The code above will return the output as follows:

  "data": [
      "credit": "2071"
  "message": "Success",
  "error_code": 0,
  "success": true

© 2020 Translate By Humans [Innovative Humans Limited]. All Rights Reserved.