POST

Check Sufficient Credits


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Checks whether a site has enough credits to translate the specified number of words.

Endpoint
POST
https://www.wixapis.com/translation-credits/v1/credit/is-eligible

Body Params
wordCountintegerRequiredminimum 0

Number of words to translate.

Response Object
sufficientCreditsboolean

Whether the site has enough credits to translate the specified number of words.

Check Sufficient Credits
Request
cURL
curl -X GET \ 'https://www.wixapis.com/translation-credits/v1/credit/is-eligible' \ -H 'Authorization: <AUTH>' \ -d '{ "wordCount": 100 }'
Response
JSON
{ "sufficientCredits": true }
Errors
404Not Found

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?