Contracts

Contract documents

Retrieves contracts

get/contracts

Returns a paginated list of contract documents.

Contracts track agreements with clients including status, start/end dates.

Parámetros de consulta

  • pageinteger
    Page number for pagination
    Por defecto: 1Ejemplo: 1
  • limitinteger
    Number of records per page
    Por defecto: 25Ejemplo: 25
  • order_bystring
    Field to order results by
    Por defecto: created_atEjemplo: created_at
  • sortstring
    Sort direction (asc or desc)
    Valores:ascdescPor defecto: desc

Respuestas

  • 200contracts found
  • 401unauthorized
Petición
curl -X GET 'https://api.vixiees.com/api/v1/contracts' \
  -H 'X-Api-Key: YOUR_API_KEY'
Respuesta de ejemplo · 200
{
  "results": [
    {
      "_id": "string",
      "name": "string",
      "status": "string",
      "start_date": "2024-01-01T00:00:00Z",
      "end_date": "2024-01-01T00:00:00Z",
      "created_at": "2024-01-01T00:00:00Z",
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ],
  "page_info": {
    "current_page": 0,
    "limit": 0
  }
}