Create New Transport Auction
POST/company/auction
Creates a new freight transport auction following a structured flow. Requires valid JWT authentication and active payment plan verification.
π Complete Flow for Creating a New Shipmentβ
π Step 1: Authentication and Preparationβ
- Prerequisites:
- Valid JWT token obtained via login
- Active payment plan on the company account
- Verification of auction creation permissions
π Step 2: Shipment Data Preparationβ
Mandatory information to collect:
- Pickup point (ETL): Complete address, loading date and time
- Delivery point (ETD): Complete address, unloading date and time
- Cargo characteristics: Type, weight (kg), volume (mΒ³)
- Service code: Unique shipment identifier
Optional information:
- Special notes (fragile goods, temperature, etc.)
- Mark as favorite for reuse
- Private assignment to specific trucker
π Step 3: Draft Creationβ
POST /company/auction
- The system creates the auction in
draftstate - All input data is validated
- UTC format is verified for dates
- The
service_codeis automatically assigned if not provided
βοΈ Step 4: Review and Editing (Optional)β
- State: The auction remains in
draftuntil published - Allowed edits: All fields can be modified
- Validations: The system automatically verifies each change
π’ Step 5: Auction Publicationβ
- State change: From
drafttopublished - Notification: Alerts are sent to available truckers
- Visibility: The auction appears in the public marketplace
- Timer: Starts the offer reception period
π° Step 6: Offer Receptionβ
- Truckers: Can view shipment details
- Bids: Truckers send their economic offers
- Tracking: The company can monitor offers in real time
- Communication: Messaging system for clarifications
π Step 7: Evaluation and Lockingβ
- Review: The company evaluates all received offers
- Locking: Change to
lockedstate to finalize bidding period - Prevention: No more offers are accepted once locked
β Step 8: Selection and Awardβ
- Decision: The company selects the best offer
- Acceptance: The chosen trucker's bid is accepted
- Final state: The auction moves to
completed - Contract: Documentation is automatically generated
π Step 9: Tracking and Managementβ
- Tracking: Monitoring of transport status
- Communication: Direct channel with assigned trucker
- Documentation: Access to contracts and transport documents
- Billing: Automatic payment and billing management
π― Specific Use Casesβ
Standard Public Shipmentβ
- Create public auction (
is_private: false) - Publish in marketplace
- Receive multiple offers
- Select best price/service
Private/Direct Shipmentβ
- Create private auction (
is_private: true) - Assign specific trucker (
trucker) - Direct negotiation without competition
- Immediate acceptance
Urgent Shipmentβ
- Create with very close dates
- Publish immediately
- Accept first valid offer
- Prioritize speed over price
β‘ Critical Validationsβ
- Dates: Mandatory UTC format (YYYY-MM-DDTHH:mm:ssZ)
- Weight/Volume: Positive numeric values
- Addresses: Valid address format
- Payment plan: Active subscription verification
- Limits: Respect to plan limits (number of shipments/month)
Requestβ
Responsesβ
- 200
- 400
- 401
- 404
Auction created successfully.
Invalid input data. Possible causes:
- Incorrect date format (must be UTC)
- Missing required fields
- Negative numeric values
Unauthorized. Possible reasons:
- Invalid or expired JWT token
- Insufficient permissions
Company not found or does not have an active payment plan.