> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Sample Flows ## Article: Sample Flows ## Article Link: https://dev.wix.com/docs/api-reference/business-management/multilingual/machine-translation/credit-data/sample-flows.md ## Article Content: # Credit Data: Sample Flows This article presents possible use cases and corresponding sample flows that you can support. This can be a helpful jumping off point as you plan your implementation. ## Check for sufficient credits before machine translation You can check credit availability before translation to avoid failed requests. To check for sufficient credits before machine translation: 1. Calculate the total number of words that need to be translated. 2. Call [Check Sufficient Credits](https://dev.wix.com/docs/rest/business-management/multilingual/machine-translation/credit-data/check-sufficient-credits.md) and specify the word count to determine whether a site has enough credits for the translation. 3. If there are sufficient credits, use the [Machine Translation API](https://dev.wix.com/docs/rest/business-management/multilingual/machine-translation/machine-translation/introduction.md) to translate the content. If not, Wix users need to purchase additional credits in the [Translation Manager](https://support.wix.com/en/article/wix-multilingual-using-the-translation-manager). ## Create a translation credit dashboard You may want to monitor translation costs for a site to help users track usage and plan their translation budget. To create a credit dashboard for a site: 1. For each site, periodically call [Get Credit Data](https://dev.wix.com/docs/rest/business-management/multilingual/machine-translation/credit-data/get-credit-data.md) to obtain the quota type, quota amount, and the number of credits used at a given time. 2. For sites with a limited quota, calculate the remaining credits by subtracting the credits used from the quota. 3. Display this data on your dashboard and in a notification system to alert Wix users when a site's credit balance is running low.