|
| 1 | +--- |
| 2 | +title: Cost center allocation for different products |
| 3 | +intro: 'Learn how your spending is assigned to cost centers for licensed and metered products.' |
| 4 | +shortTitle: Cost center allocation |
| 5 | +versions: |
| 6 | + feature: enhanced-billing-platform |
| 7 | +topics: |
| 8 | + - Billing |
| 9 | + - Enterprise |
| 10 | + - Team |
| 11 | +contentType: reference |
| 12 | +product: '{% data variables.product.prodname_ghe_cloud %}' |
| 13 | +--- |
| 14 | + |
| 15 | +This article contains reference information for how spending is assigned to cost centers. To create and manage cost centers, see [AUTOTITLE](/billing/tutorials/use-cost-centers). |
| 16 | + |
| 17 | +## Overview |
| 18 | + |
| 19 | +{% data reusables.billing.cost-center-allocation %} |
| 20 | + |
| 21 | +## Breakdown by product |
| 22 | + |
| 23 | +| Product | A cost center is charged if it contains this resource | |
| 24 | +| ------- | ----------------------------------------------------- | |
| 25 | +| {% data variables.product.prodname_actions %} | The repository or organization where the workflow runs. | |
| 26 | +| {% data variables.product.prodname_github_codespaces %} | The repository or organization where the codespace is created. | |
| 27 | +| {% data variables.product.prodname_copilot %} | The user who receives the license (priority), or the organization where they are a member. | |
| 28 | +| Git Large File Storage | The repository or organization where Git LFS is used. | |
| 29 | +| {% data variables.product.prodname_GH_cs_and_sp %} | The user who receives the license. | |
| 30 | +| {% data variables.product.prodname_enterprise %} | The user who receives the license. | |
| 31 | +| {% data variables.product.prodname_registry %} | The repository or organization that owns the package. | |
| 32 | + |
| 33 | +## Details for license-based products |
| 34 | + |
| 35 | +To ensure your cost centers reflect spending as intended, it's important to understand how spending is allocated to cost centers for license-based products like {% data variables.product.prodname_copilot %}, and how changes are reflected in your bill. |
| 36 | + |
| 37 | +### {% data variables.product.prodname_copilot %} |
| 38 | + |
| 39 | +* If a user belongs to a cost center, all charges associated with the user are billed to the cost center. |
| 40 | +* If a user does not belong to any cost center, usage is billed to the organization where the user receives their {% data variables.product.prodname_copilot_short %} license. If _that organization_ is part of a cost center, the charges are billed to that cost center. |
| 41 | +* If the user receives access to {% data variables.product.prodname_copilot_short %} through **multiple organizations**, one of the organizations is chosen at random each month to be billed, and the cost center that contains the organization is charged accordingly. See [AUTOTITLE](/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-the-copilot-subscription-for-your-enterprise/about-billing-for-github-copilot-in-your-enterprise#about-seat-assignment-for-copilot-in-your-enterprise). |
| 42 | + |
| 43 | +### {% data variables.product.prodname_GH_cs_and_sp %} |
| 44 | + |
| 45 | +* If a user belongs to a cost center, licenses consumed by the user are billed to the cost center. |
| 46 | +* If a user does not belong to any cost center, their license consumption is charged to the enterprise's default payment method and grouped under "Enterprise Only" spending on the usage page. |
| 47 | + |
| 48 | +### {% data variables.product.prodname_enterprise %} |
| 49 | + |
| 50 | +* If a user belongs to a cost center, the license consumed by the user is billed to the cost center. |
| 51 | +* If a user does not belong to any cost center, their license is billed to the enterprise's default payment method and grouped under "Enterprise Only" spending on the usage page. |
| 52 | + |
| 53 | +## Example for license-based products |
| 54 | + |
| 55 | +The following example illustrates how usage is assigned to cost centers for license-based products. Based on four licensed users, their organization membership, and how cost centers are set up, you will see how usage is allocated to cost centers. |
| 56 | + |
| 57 | +### The users |
| 58 | + |
| 59 | +There are four users, each a member of one or more organizations in the enterprise. |
| 60 | + |
| 61 | +| User | Organization membership | |
| 62 | +| ---- | ----------------------- | |
| 63 | +| `user-1` | `org-1`, `org-2` | |
| 64 | +| `user-2` | `org-1` | |
| 65 | +| `user-3` | `org-1` | |
| 66 | +| `user-4` | `org-1`, `org-2` | |
| 67 | + |
| 68 | +All users have a license for **{% data variables.product.prodname_copilot %}** and **{% data variables.product.prodname_enterprise %}** (GHE). |
| 69 | + |
| 70 | +**{% data variables.product.prodname_GH_secret_protection %}** (GHSP) is enabled in `org-1`, where all users are active committers. |
| 71 | + |
| 72 | +### The cost centers |
| 73 | + |
| 74 | +There are two cost centers in the enterprise, each with different users or organizations assigned. |
| 75 | + |
| 76 | +| Cost center | Assigned resources | |
| 77 | +| ---- | ----------------------- | |
| 78 | +| Cost Center A | `user-1`, `user-3` | |
| 79 | +| Cost Center B | `org-1` | |
| 80 | + |
| 81 | +`user-2`, `user-4`, and `org-2` are **not** assigned to any cost center. |
| 82 | + |
| 83 | +### How usage is allocated |
| 84 | + |
| 85 | +The following table illustrates how spending for each user is allocated to a cost center based on their membership of an organization or cost center. Any usage not assigned to a cost center is categorized as "Enterprise Only" spending. |
| 86 | + |
| 87 | +{% rowheaders %} |
| 88 | + |
| 89 | +| | Copilot charges | GHSP charges | GHE charges | Explanation | |
| 90 | +| ----------- | --------------- | ------------ | ----------- | ----------- | |
| 91 | +| Cost Center A | `user-1`, `user-3` | `user-1`, `user-3` | `user-1`, `user-3` | These users are assigned directly to the cost center. | |
| 92 | +| Cost Center B | `user-2`, `user-4` | {% octicon "dash" aria-label="Not applicable" %} | {% octicon "dash" aria-label="Not applicable" %} | These users aren't directly assigned to a cost center, so Copilot charges are assigned based on organization membership, whereas GHSP and GHE default to enterprise spending. |
| 93 | +| Enterprise Only (default) | {% octicon "dash" aria-label="Not applicable" %} | `user-2`, `user-4` | `user-2`, `user-4` | These users aren't directly assigned to a cost center, so GHSP and GHE default to enterprise spending. | |
| 94 | + |
| 95 | +{% endrowheaders %} |
| 96 | + |
| 97 | +## Effects of changes to cost centers |
| 98 | + |
| 99 | +You can change the included resources of a cost center or delete a cost center at any time. This affects the cost center in different ways. |
| 100 | + |
| 101 | +### Deleting a cost center |
| 102 | + |
| 103 | +If a cost center is deleted, future usage of its resources will be charged to the enterprise. Usage before deletion is billed to the cost center until the end of the billing cycle. |
| 104 | + |
| 105 | +You can still view the cost center even after you delete it. To do so, select the "Deleted" tab on the cost center page. |
| 106 | + |
| 107 | +### Adding or removing a member |
| 108 | + |
| 109 | +If you add a member to a cost center, any usage accrued (for example, a {% ifversion enterprise-licensing-language %}license{% else %}seat{% endif %}) will immediately start being billed against the cost center. If you remove a member from a cost center, any usage from that point will be billed against the enterprise. For example: |
| 110 | + |
| 111 | +| Date | Scenario | Effect | |
| 112 | +| ---- | -------- | ------ | |
| 113 | +| May 1 | An enterprise has three {% data variables.product.prodname_copilot_short %} users. | The charges for all three users are billed to the enterprise. | |
| 114 | +| May 10 | You create two cost centers: Cost Center 1 and Cost Center 2. User A and User B are assigned to Cost Center 1, and User C to Cost Center 2. | Future charges for Users A and B go to Cost Center 1, and for User C to Cost Center 2. | |
| 115 | +| May 20 | You remove User A from Cost Center 1. | From now on, User A's charges are billed to the enterprise, while User B's charges remain with Cost Center 1, and User C's charges with Cost Center 2. | |
| 116 | + |
| 117 | +The "units" for {% data variables.product.prodname_copilot_short %} licenses displayed on your enterprise's "Usage" page will show fractional usage instead of whole numbers. |
| 118 | + |
| 119 | +#### Update delays for license-based products |
| 120 | + |
| 121 | +Adding or removing users from a cost center comes with a delay for license-based products. |
| 122 | + |
| 123 | +* For {% data variables.product.prodname_copilot %}: A change to add or remove a user from a cost center is reflected the **next day**. |
| 124 | +* For {% data variables.product.prodname_enterprise %}: A change to add or remove a user from a cost center is reflected the **next day**. |
| 125 | +* For {% data variables.product.prodname_GH_cs_and_sp %}: A change to add or remove a user from a cost center is reflected in the **next billing cycle**. |
| 126 | + |
| 127 | +If a user is already part of a cost center and _then_ receives a license, the license is immediately billed to the cost center. |
| 128 | + |
| 129 | +If a user who already has a license is added to a cost center, the license will be billed to the cost center from the next billing cycle. |
0 commit comments