Skip to main content

Manage Discounts


Use the Manage Discounts screen to apply, update, or remove a discount for an appointment before you submit the Visit Took Place report.
The Doctor App opens this screen as a full-screen popup from the visit summary workflow.
The screen enforces discount rules, recalculates totals, and returns control to the visit summary after you confirm changes.


This page includes:

  • A discount type selector with predefined values.
  • An amount field that accepts numeric values in the appointment currency.
  • Totals:
    • Total: Net fee plus charges.
    • Include discount: Total minus discount.
  • Controls to Add discount, Update, and Remove.
  • Validation that blocks confirmation when required values contain errors.
  • Integration with the charges area in the visit summary.

Workflows

Add a Discount

  1. On the Appointment list screen, open an appointment.
  2. In the visit summary charges area, select Add Discount.
  3. In Type, select a discount type.
  4. In Amount, enter a numeric value in the appointment currency.
  5. Review totals:
    • Total shows net fee plus charges.
    • Include discount shows total minus discount.
  6. Select Add discount.

Edit or Remove a Discount

  1. In the charges area, select the discount entry.
  2. Update Type or Amount.
  3. Select Update to apply changes.
  4. Select Remove to clear the discount.

Validations

These scenarios describe validation on the Manage Discounts screen and the expected SDK result.

ScenarioApp BehaviorSDK OutputExample
The doctor selects Add discount with Type empty.The app blocks submission and highlights the type selector.Validation error in the update set; no change to discount fields.
The doctor enters a non-numeric value in Amount.The app blocks submission and shows inline feedback for Amount.Validation error that targets the amount field.
The doctor enters a value outside the allowed numeric range for Amount.The app blocks submission and keeps the popup open.Validation error in the update set; totals remain unchanged.
Authorization denies the discount operation.The app blocks the action and shows an error message.Error in the update set or server response; no change to discount fields.

Actions

These scenarios describe app behavior for key actions and the expected SDK result.

ScenarioApp BehaviorSDK OutputExample
The doctor enters valid values and selects Add discount.The app applies the discount and updates totals in the visit summary.Update set that adds discount fields to the page object.
The doctor changes values and selects Update.The app updates discount values and updates totals.Update set that modifies discount fields in the page object.
The doctor selects Remove.The app clears the discount and updates totals.Update set that removes discount fields from the page object.
The doctor closes the popup after a successful change.The app returns to the visit summary with updated totals.Subsequent page responses reflect updated billing values.

Endpoint Resources

Present Discount

PUT 

/profile/appointments/{appointment-id}/summary/discount

Produces the Manage Discounts popup for the specified appointment.
The response body includes:

  • Discount type selector.
  • Amount input.
  • Total and final fee values.
  • Action buttons for add, update, and remove.

UI Element Types

LevelReferenceTypeValuePlacement
1EditThe header text and close button is the parts of Cover1
1discount-typeComboType1
1discount-amountDoubleAmount1
1discount-total-titleRegularTotal
1discount-total-spacerSpacer~
1discount-total-amountRegularappointment net fee + extra charges in appointment's currency~
1include-discount-titleRegularInclude discount
1include-discount-spacerSpacer~
1include-discount-amountRegularappointment net fee + extra charges - discount in appointment's currency~
1createButtonAdd discount1
1updateButtonUpdate1
1rem

Add Discount

PATCH 

/profile/appointments/{appointment-id}/summary/discount

Returns an update set that adds a discount to the appointment summary.

Update Discount

PATCH 

/profile/appointments/{appointment-id}/summary/discount/update

Returns an update set that updates discount values for the appointment.

Patch Discount

PATCH 

/profile/appointments/{appointment-id}/summary/discount/patch

Returns an update set that patches discount fields for the appointment.

Delete Discount

PATCH 

/profile/appointments/{appointment-id}/summary/discount/delete

Returns an update set that removes the discount from the appointment summary.