ProjectsList contract models

List contract models

Lists the contract (payment) models enabled in the account.

The value set for a contract's model. The models are fixed in code (ContractModelType); the list contains the ones whose account feature is on (for example ContractModelPrepaidServices). Names are enum member names, not UI titles. No paging: the whole list (at most 8 entries) is returned.

Use it to:

  • Check which contract models the account has enabled before creating contracts

Behaviour:

  • Idempotent.
  • Safe to retry.
  • Changes are visible to the next read immediately.

See also: POST /v1/payment

Not yet documented: related → next.

curl -X GET "https://app3.timelog.com/your-account/api/v1/ContractModel" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "Entities": [
    {
      "Properties": {
        "ContractModelID": 1,
        "Name": "TimeMaterialBasic"
      }
    },
    {
      "Properties": {
        "ContractModelID": 3,
        "Name": "TimeMaterialAccountEndBalancing"
      }
    },
    {
      "Properties": {
        "ContractModelID": 5,
        "Name": "PrepaidServices"
      }
    },
    {
      "Properties": {
        "ContractModelID": 4,
        "Name": "TimeMaterialAccountPeriodicBalancing"
      }
    },
    {
      "Properties": {
        "ContractModelID": 2,
        "Name": "FixedPriceBasic"
      }
    },
    {
      "Properties": {
        "ContractModelID": 7,
        "Name": "ContinuousService"
      }
    },
    {
      "Properties": {
        "ContractModelID": 6,
        "Name": "TaskDrivenRevenue"
      }
    },
    {
      "Properties": {
        "ContractModelID": 8,
        "Name": "ContinuousItemInvoicing"
      }
    }
  ],
  "Links": [
    {
      "Href": "https://app{server-number}.timelog.com/{account}/api/v1/ContractModel",
      "Rel": "self"
    }
  ]
}
GET
/v1/ContractModel
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

OAuth 2.0 bearer token, sent as Authorization: Bearer <token>. JWT and reference tokens are both accepted. The token must carry the required scope (default tlp). The token's sub claim is the acting user. A token WITHOUT sub (client-credentials) acts as the system service user. If the sub user cannot log in (inactive, locked, deleted), the request is rejected with 401 — it is no longer let through without a user. > Not yet documented: how to obtain a token. > Not yet documented: token lifetime.

OAuth 2.0 bearer token, sent as Authorization: Bearer <token>. JWT and reference tokens are both accepted. The token must carry the required scope (default tlp). The token's sub claim is the acting user. A token WITHOUT sub (client-credentials) acts as the system service user. If the sub user cannot log in (inactive, locked, deleted), the request is rejected with 401 — it is no longer let through without a user. > Not yet documented: how to obtain a token. > Not yet documented: token lifetime.
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. OAuth 2.0 bearer token, sent as Authorization: Bearer <token>. JWT and reference tokens are both accepted. The token must carry the required scope (default tlp).

The token's sub claim is the acting user. A token WITHOUT sub (client-credentials) acts as the system service user. If the sub user cannot log in (inactive, locked, deleted), the request is rejected with 401 — it is no longer let through without a user.

Not yet documented: how to obtain a token.

Not yet documented: token lifetime.

Responses

Entitiesarray

Omitted (not []) when the list is empty.

Linksarray