Construction Job Cost

Create contract

POST
Create a contract for an integration.

Request

This endpoint expects an object.
integration_id
stringRequired
vendor_id
stringOptional
The Propexo unique identifier for the vendor
start_date
unionOptional
The start date associated with the contract
end_date
unionOptional
The end date associated with the contract
x_id
stringOptional
The external ID from the integration vendor. This must be a unique value when creating a new contract.
notes
stringOptional
Notes associated with the contract
expense_type
stringOptional
The expense type of the contract. You'll have to request this data from your customer
retention_percent
stringOptional
contract_details
list of objectsOptional

Response

This endpoint returns an object
job_id
string
The ID of the job created to handle this operation
data
object
Returned data from the operation. This is dependent on the vendor specific endpoint's returned data.
POST
1curl -X POST https://api.propexo.com/v1/contracts \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "integration_id": "integration_id"
6}'
200Successful
1{
2 "job_id": "clwh5uics000608me9v74du0a",
3 "data": {}
4}