Skip to content

Client-supplied merchant_id in the body is silently ignored instead of rejected #128

Description

@Darkdruce

Summary

Since tenancy comes from auth, a merchant_id field in the request body has no effect and is dropped without error.

Location

  • src/api/payments.rs:92-98 (field absent from struct; extra JSON keys ignored)

Details & impact

Integrators (following the current docs) believe they set the merchant; silently ignoring it hides the mistake.

Suggested fix

Either 400 on unexpected fields or explicitly document that body merchant_id is ignored (and remove it from docs).

Acceptance criteria

  • Behavior for body merchant_id is explicit and documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26apiHTTP API surface and handlersbugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions