# Contract Grouping

Link, delink, undo delink, and manually create revenue contracts.

 - [POST /revenue-management/contracts/{rcId}/link-rc](https://developer.zuora.com/other-api/revenue-api-3/contract-grouping/linkcontracts.md): **Purpose** Merges other revenue contracts into the contract in the path. **When to use** - Contracts that belong together (for example a sale and its later add-on) were created separately and must be
 - [POST /revenue-management/contracts/{rcId}/pobs/link](https://developer.zuora.com/other-api/revenue-api-3/contract-grouping/linkpobs.md): **Purpose** Moves the given POBs from other contracts into the contract in the path. **When to use** - A POB was grouped into the wrong contract. **Behavior notes** The contract version is checked wi
 - [POST /revenue-management/contracts/{rcId}/lines/link](https://developer.zuora.com/other-api/revenue-api-3/contract-grouping/linklines.md): **Purpose** Links document lines into the contract, attaching them to a POB (`rcPobId`) or grouping them under a lead line (`leadLineId`). **When to use** - Specific lines must join this contract. **
 - [POST /revenue-management/contracts/{rcId}/charges/link](https://developer.zuora.com/other-api/revenue-api-3/contract-grouping/linkcharges.md): **Purpose** Links all lines of the given Zuora Billing charges into the contract. **When to use** - A subscription charge was grouped into a different contract. **Behavior notes** The contract versio
 - [POST /revenue-management/contracts/{rcId}/subscriptions/link](https://developer.zuora.com/other-api/revenue-api-3/contract-grouping/linksubscriptions.md): **Purpose** Links all lines of the given subscriptions into the contract. **When to use** - All lines of a subscription must be accounted for in this contract. **Behavior notes** The contract version
 - [POST /revenue-management/contracts/{rcId}/delink-rc](https://developer.zuora.com/other-api/revenue-api-3/contract-grouping/delinkcontract.md): **Purpose** Undoes a contract-level link, so contracts that were merged into this one separate again. **When to use** - Contracts were merged by mistake. **Behavior notes** The contract version is ch
 - [POST /revenue-management/contracts/{rcId}/pobs/delink](https://developer.zuora.com/other-api/revenue-api-3/contract-grouping/delinkpobs.md): **Purpose** Removes the given POBs, and their lines, from the contract so they regroup into separate contracts. **When to use** - A POB does not belong in this contract. **Behavior notes** The contra
 - [POST /revenue-management/contracts/{rcId}/lines/delink](https://developer.zuora.com/other-api/revenue-api-3/contract-grouping/delinklines.md): **Purpose** Removes specific document lines from the contract. **When to use** - A line does not belong in this contract. **Behavior notes** The contract version is checked with optimistic locking. T
 - [POST /revenue-management/contracts/{rcId}/charges/delink](https://developer.zuora.com/other-api/revenue-api-3/contract-grouping/delinkcharges.md): **Purpose** Removes all lines of the given Zuora Billing charges from the contract. **When to use** - A charge must be accounted for separately. **Behavior notes** The contract version is checked wit
 - [POST /revenue-management/contracts/{rcId}/subscriptions/delink](https://developer.zuora.com/other-api/revenue-api-3/contract-grouping/delinksubscriptions.md): **Purpose** Removes all lines of the given subscriptions from the contract. **When to use** - A subscription must be accounted for separately. **Behavior notes** The contract version is checked with
 - [POST /revenue-management/contracts/{rcId}/undoDelink](https://developer.zuora.com/other-api/revenue-api-3/contract-grouping/undodelink.md): **Purpose** Reverses a previous delink on the revenue contract, restoring the contracts, POBs, or lines that were split off. **When to use** - A delink was done by mistake and must be reverted.
 - [POST /revenue-management/contracts/create-manual](https://developer.zuora.com/other-api/revenue-api-3/contract-grouping/createmanualrevenuecontract.md): **Purpose** Creates a new revenue contract by manually grouping whole contracts, or selected POBs and document lines. **When to use** - Automatic grouping rules did not produce the contract you need,
