Endpoints
Create custody chain
Associated work sheet ID
Date of custody transfer (YYYY-MM-DD format)
Type of waste being transferred. Options:
AGUAS NEGRAS- Black waterAGUAS GRISES- Grey waterAGUA LIMPIA- Clean waterLODOS- SludgeRIPIOS- Drilling cuttingsOTROS- Other
Volume in gallons
Volume in barrels (1 barrel = 42 gallons)
Volume in cubic meters
Name of responsible contact at destination
Contact phone number
Driver name
Driver’s license number
Technical staff name
Additional notes or observations
Get custody chain detail
Custody chain ID
Edit custody chain
Custody chain ID to update
Updated date
Updated waste type
Updated volume in gallons
Updated contact name
Updated observations
Only provide fields that need to be updated. Other fields will remain unchanged.
Regenerate equipment codes
ID of the custody chain
Custody chain model
Unique identifier
Associated work sheet
Date of custody transfer
Type of waste:
AGUAS NEGRAS, AGUAS GRISES, AGUA LIMPIA, LODOS, RIPIOS, OTROSVolume in gallons
Volume in barrels (auto-calculated: gallons ÷ 42)
Volume in cubic meters (auto-calculated: gallons × 0.00378541)
Responsible contact at destination
Contact phone number
Driver performing the transfer
Driver’s license number
Technical staff responsible
Additional notes
Soft delete flag
Chain custody detail model
Equipment items tracked in the custody chain:Unique identifier
Parent custody chain
The equipment/resource being tracked
Sequential code for this custody chain (e.g., 1, 2, 3)
Waste type reference
Aguas negras
Black water from sanitary facilities
Aguas grises
Grey water from washing stations
Agua limpia
Clean water storage and transfer
Lodos
Sludge from treatment processes
Ripios
Drilling cuttings and waste
Otros
Other waste types
Workflow example
Equipment assignment
Equipment items are automatically associated based on the project resources at the time of creation. Each item receives a sequential physical_equipment_code.
Volume calculations
When you specify volume_gallons, the system automatically calculates:
- volume_barrels = volume_gallons ÷ 42
- volume_cubic_meters = volume_gallons × 0.00378541
Best practices
Volume conversions
Volume conversions
The system uses the following conversion factors:
- 1 barrel = 42 gallons
- 1 gallon = 0.00378541 cubic meters
- 1 cubic meter = 264.172 gallons
Environmental compliance
Environmental compliance
Custody chains are legal documents for environmental compliance. Ensure:
- Accurate waste type classification
- Precise volume measurements
- Complete contact and driver information
- Proper equipment tracking
Equipment codes
Equipment codes
Physical equipment codes are sequential numbers (1, 2, 3…) used to identify equipment in printed custody chain documents. Use the regenerate-codes endpoint if equipment assignments change after creation.
Document integrity
Document integrity
Once a custody chain is created and signed, avoid editing unless absolutely necessary. Changes should be tracked in the observations field or by creating a new custody chain.
Related endpoints
Work sheets
Manage work sheets and billing
Project resources
View equipment assigned to projects
Documents
Generate and merge custody chain PDFs