Fix update payout scehdule end point

The updatePayoutSchedule endpoint currently requires both weekly_anchor and monthly_anchor fields, as shown in the screenshot. However, these fields should only be required when the interval is set to weekly or monthly, respectively. They are not always mandatory โ€” for example, if the interval is set to daily, both fields can be omitted. Therefore, both weekly_anchor and monthly_anchor should be marked as optional and validated conditionally based on the interval value.

Domain
Payment
Action
fix
Department
Backend

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
๐Ÿ› ๏ธ

Bug & Fixes

ETA
Jun 04, 2025
Date

11 months ago

Author

Abdulmelik Ambaw

Subscribe to post

Get notified by email when there are changes.