#495 — Add partner commission split variables to facade

Repo: Twill-AI/facade State: closed | Status: done Assignee: Ahmad1809

Created: 2025-08-13 · Updated: 2025-08-26

Description

Request

Caused by https://twillpayments.atlassian.net/wiki/spaces/TD/pages/407699457/Current+and+historical+commission+calculations

In order to calculate the commission that gets split with each rep we have to have the split percentages stored in our database, they are 3 per partner float values that will be stored on new columns on the partner table:

  • commission_split_low_risk: float [0, 1]
  • commission_split_med_risk: float [0, 1]
  • commission_split_high_risk: float [0, 1]

Acceptance criteria

  • The partner table has been modified to include the new columns
  • The /api/v1/master/partners API has been modified to include this information (in POST and GET)
  • All other potentially relevant changes needed after extending the table have been considered
  • Tests for the endpoint are updated to include the new fields

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets