DeltaX Client REST HTTP API
  1. trip
DeltaX Client REST HTTP API
  • Webhook Integration Documentation
  • trip
    • Get Trip by ID
      GET
    • Update Trip
      PUT
    • Create Incidence
      POST
    • List Trips
      GET
  • route
    • List Routes
      GET
    • Get Route by ID
      GET
    • List Warehouses
      GET
    • Get Warehouse by ID
      GET
    • List Window Availability
      GET
  • company
    • List Transport Companies
      GET
    • Get Transport Company by ID
      GET
  • fleet
    • List Transport Units
      GET
    • Get Transport Unit by ID
      GET
    • List Truckers
      GET
    • Get Trucker by ID
      GET
    • List Dollies
      GET
    • Get Dolly by ID
      GET
  • rates
    • List Rates
      GET
  • Schemas
    • Schemas
      • IncidenceCreate
      • TripUpdate
      • TripUpdateResponse
      • ClientTripUpdate
      • ClientIncidence
      • IncidenceCreateResponse
      • Trip
      • TripResponse
      • TripsListResponse
      • PaginationInfo
      • Route
      • RouteResponse
      • RoutesListResponse
      • Warehouse
      • WarehouseResponse
      • WarehousesListResponse
      • TransportCompany
      • TransportCompanyResponse
      • TransportCompaniesListResponse
      • TransportUnit
      • TransportUnitResponse
      • TransportUnitsListResponse
      • Trucker
      • TruckerResponse
      • TruckersListResponse
      • Dolly
      • DollyResponse
      • DolliesListResponse
      • WindowAvailability
      • WindowAvailabilityResponse
    • Response
      • Success
      • SuccessCreated
      • InternalServerError
      • BadRequest
      • NotFound
      • Unauthenticated
      • TripUpdateSuccess
      • IncidenceCreateSuccess
      • TripSuccess
      • TripsListSuccess
      • RouteSuccess
      • RoutesListSuccess
      • WarehouseSuccess
      • WarehousesListSuccess
      • TransportCompanySuccess
      • TransportCompaniesListSuccess
      • TransportUnitSuccess
      • TransportUnitsListSuccess
      • TruckerSuccess
      • TruckersListSuccess
      • DollySuccess
      • DolliesListSuccess
      • WindowAvailabilitySuccess
      • Unauthorized
  1. trip

Create Incidence

POST
/trip/{tripId}/incidence
Creates an incidence record for a specific trip, documenting issues during load or unload operations.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢201Created
application/json
Incidence has been successfully created for the trip
Body

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://fmsapi.deltax.la/clients/trip/0017228764/incidence' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "stage": "load",
    "incident": "others",
    "offender": "others",
    "observation": "noFee",
    "comment": "DEMORA EN DOCUMENTOS"
}'
Response Response Example
201 - Success
{
    "message": "Incidence created successfully",
    "data": {
        "tripId": "0017228764",
        "clientIncidence": {
            "_id": "507f1f77bcf86cd799439015",
            "status": "pending",
            "clientId": "507f1f77bcf86cd799439011",
            "clientCode": "CLIENT001",
            "tripId": "0017228764",
            "incidenceData": {
                "stage": "load",
                "incident": "others",
                "offender": "others",
                "observation": "noFee",
                "comment": "DEMORA EN DOCUMENTOS"
            },
            "created": "2024-01-15T10:30:00.000Z"
        }
    }
}
Modified at 2025-11-21 22:26:35
Previous
Update Trip
Next
List Trips
Built with