curl --request PUT \
--url https://api.example.com/api/v1/contracts/{contract_id} \
--header 'Content-Type: application/json' \
--data '
{
"status": "<string>",
"terms": {}
}
'{
"status": "<string>",
"contract_id": "<string>"
}Update contract status or terms
curl --request PUT \
--url https://api.example.com/api/v1/contracts/{contract_id} \
--header 'Content-Type: application/json' \
--data '
{
"status": "<string>",
"terms": {}
}
'{
"status": "<string>",
"contract_id": "<string>"
}pending: Awaiting signaturesconfirmed: All parties have signed (sets confirmed_at timestamp)active: Contract is in effectcompleted: Contract has been fulfilled (sets completed_at timestamp)cancelled: Contract was cancelledtotal_amount: Update the contract amountdelivery_location: Update delivery locationdelivery_deadline: Update delivery deadlinequality_requirements: Update quality specificationscurl -X PUT https://api.voicepact.com/api/v1/contracts/AGRI-2026-001234 \
-H "Content-Type: application/json" \
-d '{
"status": "confirmed"
}'
curl -X PUT https://api.voicepact.com/api/v1/contracts/AGRI-2026-001234 \
-H "Content-Type: application/json" \
-d '{
"terms": {
"delivery_location": "Updated Market Location",
"delivery_deadline": "2026-03-20"
}
}'
curl -X PUT https://api.voicepact.com/api/v1/contracts/AGRI-2026-001234 \
-H "Content-Type: application/json" \
-d '{
"status": "active",
"terms": {
"payment_status": "deposit_received",
"notes": "Initial payment confirmed"
}
}'
{
"status": "updated",
"contract_id": "AGRI-2026-001234"
}
{
"detail": "Contract not found"
}
{
"detail": "Failed to update contract"
}
confirmed_at to current UTC timecompleted_at to current UTC timestatus and terms are optional - you can update either or both