Repository navigation
Contract
Fabian Steiner edited this page Nov 4, 2026
·
2 revisions
from xurrent import Contract · module xurrent.contracts · API resource /contracts · Xurrent API docs
A contract with a customer or supplier organization, covering configuration items.
The named arguments of the constructor. Every other field of the API response is set as an attribute as well.
| Field | Type | Default | Converted to |
|---|---|---|---|
id |
int |
||
name |
Optional[str] |
None |
|
status |
Optional[str] |
None |
ContractStatus (unknown values stay text) |
customer |
None |
Organization |
Contract.get_by_id(connection_object: XurrentApiHelper, id: int) -> TAPI: GET /contracts/{id}
Contract.get_contracts(connection_object: XurrentApiHelper, predefinedFilter: ContractPredefinedFilter = None, queryfilter: dict = None) -> List[T]API: GET /contracts · Enums: ContractPredefinedFilter
Contract.create(connection_object: XurrentApiHelper, data: dict) -> TAPI: POST /contracts
contract.ref_str() -> strcontract.update(data: dict) -> TAPI: PATCH /contracts/{id}
contract.get_cis(queryfilter: dict = None) -> ListAPI: GET /contracts/{id}/cis · Uses: ConfigurationItem
Used by: Contract.get_contracts
| Value | Description |
|---|---|
active |
|
inactive |
Used by: Contract.status
| Value | Description |
|---|---|
being_prepared |
|
scheduled_for_activation |
|
active |
|
expired |
Uses:
-
ConfigurationItem:
get_cis() -
Organization:
customer
Used by:
-
Organization:
get_contracts()
- XurrentApiHelper
- Calendar
- ClosureCode
- ConfigurationItem
- Contract
- CustomCollection
- CustomCollectionElement
- EffortClass
- Holiday
- KnowledgeArticle
- Organization
- OutOfOfficePeriod
- Person
- Problem
- Product
- ProductCategory
- Project
- ProjectTask
- Release
- Request
- RequestTemplate
- Risk
- Service
- ServiceInstance
- ServiceOffering
- ShopArticle
- ShopArticleCategory
- ShopOrderLine
- Site
- SkillPool
- Task
- Team
- TimeAllocation
- UiExtension
- Workflow
- WorkflowTemplate