Skip to content

How do I prevent spreadsheet imports from turning a video API credit cap into a text value?

Validate quantity and precision before sending the actual API payload. A localized or labeled spreadsheet cell is not automatically a valid JSON number.

SHIP A RELIABLE INTEGRATIONAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval

Inspect the outgoing data type

Read the imported cap and distinguish numeric cells from strings such as 25 credits. Normalize only using documented scale and currency assumptions.

Keep units explicit

Separate website display credit and developer ledger values. Test a value with two decimals and reject unclear punctuation before any creation request.

Final review

Preflight the actual request and display the interpreted value to the approver.

Pass condition

The outgoing field contains a documented numeric ceiling in the intended credit unit.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation