GET
/
v1
/
contracts

Authorizations

Authorization
string
headerrequired

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

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Query Parameters

offset
integer

-Optional. Default:0. Number of records you wish to skip before selecting records.

limit
integer

Limits the number of records returned by the api.

sortOrder
enum<string>

sort directions of the retrieved records. Default value desc

Available options:
desc,
asc
sortBy
enum<string>

sort field of the retrieved records. Default value updatedAt

Available options:
contractId,
organizationName,
startDate,
endDate,
status,
priceListId,
updatedAt
startDateFrom
string

start date of the contracts to filter. If sent also startDateTo must be sent.

startDateTo
string

start date of the contracts to filter. If sent also startDateFrom must be sent.

endDateFrom
string

end date of the contracts to filter. If sent also endDateTo must be sent.

endDateTo
string

end date of the contracts to filter. If sent also endDateFrom must be sent.

search
string

it will be compared against the name of the party of the contract or de contractId.

status
enum<string>

status of the contracts to be retrieved.

Available options:
DRAFT,
INACTIVE,
ACTIVE
filterField
string

-Optional. Must be used in combination with filterValue. Especifies a particular field to filter on.

filterValue
string

-Optional. Must be used in combination with filterField. Especifies the value of the field determined in filterValue.

Response

200 - application/json
query
object

it contains data about pagination

data
object[]

list of contracts to be retrieved