Errors

Reseller top-up presets must be a JSON array of dollar amounts

Admin/shared top-up options — presets JSON invalid (amounts expected).

Reseller top-up presets must be a JSON array of dollar amounts

Parsing reseller top-up presets failed because the value is not a JSON array of dollar amounts (balance-topup-options-shared).

Why this happens

Admin setting corrupted, hand-edited JSON with objects/strings instead of numbers, or wrong shape. Sibling Reseller top-up presets must be a JSON array is the shorter/type-only check.

Diagnose and fix

1. Admin: set presets to a JSON array of numbers (e.g. [10, 25, 50]).

2. Save; reload reseller top-up options.

3. Avoid trailing commas or non-JSON text.

4. See Balance top-up presets / account top-up docs for related preset patterns.

Related