Skip to main content
GET
/
contracts
/
{contract_id}
/
positions
Get contract positions
curl --request GET \
  --url https://api.projectcor.com/v1/contracts/{contract_id}/positions \
  --header 'Authorization: Bearer <token>'
{
  "total": "1",
  "perPage": 20,
  "page": 1,
  "lastPage": 1,
  "data": [
    {
      "id": 1,
      "user_positions_header_id": 1,
      "contract_id": 1,
      "position_id": 1,
      "team_id": 1,
      "rate": 1,
      "hours": 10,
      "currency_id": 1,
      "currency": {
        "id": 1,
        "name": "USD"
      },
      "team": {
        "id": 1,
        "name": "Team 1",
        "workspace_id": null
      },
      "position": {
        "id": 1,
        "name": "User Position 1"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

contract_id
integer
required

Query Parameters

page
default:1

Page number (default: 1). Set to false to disable pagination.

perPage
integer
default:20

Number of items per page (default: 20).

Response

200 - application/json

List of contract positions

Paginated response for contract positions list

total

Total number of contract position rates

perPage

Number of items per page

page

Current page number

lastPage
integer

Last available page number

data
object[]

Array of contract positions for the current page