Skip to content

payload-fields — Optimization

Install payloadFieldsPlugin() when REST or Local API callers send money values as strings. It normalizes Persian digits and separators before Payload parses number fields.

Pass minor-unit integers when the client already owns numeric conversion.

Automatic collision suffixes apply only to top-level slugs. For slugs inside arrays, groups, or named tabs, use unique: false to avoid relying on suffixing.

The plugin sees collections and globals present when it runs. Place plugins adding money fields before it, respecting its order of 900.

Package guidance · Implementation. · Matching skill.