# Create a Contract

Use the contract endpoints when creating a `Contract` aggregate and adding `ContractItem` records.

## Endpoints

Global:

- `POST /v1/contracts`
- `POST /v1/contracts/{contractId}/contract-items`


Organization-scoped:

- `POST /v1/organizations/{id}/contracts`
- `POST /v1/organizations/{id}/contracts/{contractId}/contract-items`


## Source-Aligned Sequence

1. Create the contract. It starts in `Draft`.
2. Add one or more contract items.
3. If a contract item's SKU has `AutoCreateBusinessRelation = true`, the orchestrator creates a `BusinessRelation` and writes its id back to the item.
4. Confirm the contract or service activation group.
5. The contract moves to `Pending` if at least one item is `Pending`; otherwise it moves to `Final`.
6. Use `fill` and `dry-run` where required to move items from `Pending` to `Ready`.
7. Provisioning or signing moves the contract through `Processing` to `Completed`.


## Related Concepts

- [French eInvoice](/products/oneplatform/one-platform-knowledge-center/03-products-and-modules/02-namirial-services/01-french-einvoice/french-einvoice-overview)
- [Key Concepts](/products/oneplatform/one-platform-knowledge-center/01-get-started/02-key-concepts/key-concepts)
- [Organizations API](/products/oneplatform/apis/oas/organizations)