Skip to main content

Update existing contract

PUT 

/api/auction/contract/:serviceCode

Update the terms of an existing contract for a closed auction.Requirements:- The auction must be in 'closed' status- It must have a previously generated contract- The user must be a company administrator- There must be no delivery in 'in_progress' or 'completed' statusUpdatable fields:- award_price: Agreed price (requires confirmation)- special_conditions: Special terms- payment_terms: Payment conditions- insurance_details: Insurance details- etl_date/etd_date: Dates (with consistency validation)Validations performed:1. Verifies the auction exists and is closed2. Checks user permissions3. Validates date and price consistency4. Updates contract and regenerates PDFExample request body:json{ award_price: 1200, special_conditions: Fragile cargo - handle with care, payment_terms: 50% advance, 50% upon delivery, insurance_details: Full insurance included}The response includes the updated contract.

Request

Responses

Individual auction