Page credits inquiry

Query about the total page credits and used page credits of an account

HTTP Request

GET | POST

URL

https://cloud.dynamsoft.com/rest/ocr/v1/quota

Request Parameters

Parameters Type If Mandatory Description
method string Yes A fixed value: page
x-api-key string Yes DDC API Key. When making any API request, pass your key as the value of an x-api-key parameter in the Header.

Response Parameters

Parameters Type UrlEncode Description
quota int32 No The total page credits you have ever purchased.
used int32 No Used page credits.
error_code int32 No Error code
error_msg string No Error message
request_id string No Request ID

Sample Code
Request sample:

x-api-key: z81QwIA3kg0tUXkueP+QN4qXFCP0MIQIqDn94uxoVPdcnnGArr366w==
GET https://cloud.dynamsoft.com/rest/ocr/v1/quota?method=page

Response sample:

{
	'quota': 1000,
	'used': 2,
	'error_code': 0,
   	'error_msg': 'Success.',
	'request_id': 3043312634
}
Is this page helpful?

Leave a Reply

Your email address will not be published.