Contracts API
Contracts and projects: scope, variations, milestones, retention and job costing.
The same operations are in the interactive API reference, and the whole contract is in the OpenAPI document.
GET/v1/contracts
Read contracts
The contracts of the workspace. Needs miniself:read.
Scope contracts:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/contracts
Add contract
Writes a contract with its scope and milestones. The milestone shares must make the whole sum. Needs miniself:write.
Scope contracts:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
GET/v1/contracts/{id}
Read contract
One contract. Needs miniself:read.
Scope contracts:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/contracts/{id}/steps
Take a step on a contract
Agrees the contract, proposes and agrees variations, claims and certifies milestones in order, records a payment made through the payment rails, completes, releases the retention and costs the job. Needs miniself:write.
Scope contracts:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |