Skip to content

Draft: Add AddOnPurchases to the Billable Users API response

Josianne Hyson requested to merge jh/add_ons_to_billable_api_v2 into master

What does this MR do and why?

Addresses: https://gitlab.com/gitlab-org/gitlab/-/issues/411954+

Update the API response for Billable Users to include the add on assignments the user currently has.

http://localhost:3000/api/v4/groups/510/billable_members.json

# additions to the member object in the billable members API:

{
  # ..
  add_ons: {
    assigned: [
      { name: "CODE_SUGGESTIONS" } 
    ]
  }
}

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Josianne Hyson

Merge request reports