Skip to content

FuelU2 Customer API (1.0.0)

API for handling customer data, relationships, and order interactions within the FuelU2 network.

Download OpenAPI description
Overview
FuelU2 API Support

support@fuelu2.com

License

MIT

Languages
Servers
Mock server

https://developers.fuelu2.com/_mock/apis/customer/

Production server

https://api.fuelu2.com/

Operations
Operations

Request

Creates a new order with optional recurring settings and specified service quantities.

Security
bearerAuth
Bodyapplication/json-patch+jsonrequired
isBlitzboolean
Example: true
fuelTboolean
Example: true
fuelTypestring
Example: "Diesel"
driverIdstring(uuid)
Example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
maxFillAmountinteger
Example: 0
previousOrderIdstring
Example: ""
recurringboolean
Example: true
referenceCustomerstring
Example: "CustomerRef123"
recurringOrderCustomerIdstring(uuid)
Example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
serviceIdsArray of strings(uuid)
Example: ["3fa85f64-5717-4562-b3fc-2c963f66afa6"]
daysinteger
Example: 0
serviceQuantityinteger
Example: 0
subContractIdstring(uuid)
Example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
supplierDepotIdstring(uuid)
Example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
vehicleIdstring(uuid)
Example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
servicesWithQuantitiesArray of objects
curl -i -X POST \
  https://developers.fuelu2.com/_mock/apis/customer/Orders \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json-patch+json' \
  -d '{
    "isBlitz": true,
    "fuelT": true,
    "fuelType": "Diesel",
    "driverId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "maxFillAmount": 0,
    "previousOrderId": "",
    "recurring": true,
    "referenceCustomer": "CustomerRef123",
    "recurringOrderCustomerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "serviceIds": [
      "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ],
    "days": 0,
    "serviceQuantity": 0,
    "subContractId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "supplierDepotId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "vehicleId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "servicesWithQuantities": [
      {
        "serviceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "serviceQuantity": 0
      }
    ]
  }'

Responses

Success

Request

Retrieves a paginated list of orders with optional filters for date, status, customer, and more.

Security
bearerAuth
Query
Pageinteger

Page number

PageSizeinteger

Number of items per page

CustomerIdstring(uuid)

Single customer ID

CustomerIdsArray of strings

List of customer IDs

DateStartstring(date-time)

Start date for order filtering

DateEndstring(date-time)

End date for order filtering

DriverIdsArray of strings

Filter by one or more driver IDs

InProgressboolean

Filter by in-progress status

ProductIdsArray of strings

Filter by product IDs

Statusinteger

Filter by single status code

Enum0123456789
StatusesArray of integers

Filter by multiple status codes

Items Enum0123456789
SubContractIdsArray of strings

Filter by subcontract IDs

SupplierDepotIdsArray of strings

Filter by supplier depot IDs

SupplierIdstring(uuid)

Filter by supplier ID

VehicleIdsArray of strings

Filter by vehicle IDs

Textstring

Free-text search

curl -i -X GET \
  'https://developers.fuelu2.com/_mock/apis/customer/Orders/paged?Page=0&PageSize=0&CustomerId=497f6eca-6276-4993-bfeb-53cbbbba6f08&CustomerIds=string&DateStart=2019-08-24T14%3A15%3A22Z&DateEnd=2019-08-24T14%3A15%3A22Z&DriverIds=string&InProgress=true&ProductIds=string&Status=0&Statuses=0&SubContractIds=string&SupplierDepotIds=string&SupplierId=497f6eca-6276-4993-bfeb-53cbbbba6f08&VehicleIds=string&Text=string' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Success

Bodyapplication/json
dataArray of objects
totalinteger

Total number of matching records

Response
application/json
{ "data": [ {} ], "total": 0 }

Request

Renews an existing order by specifying its ID and creation timestamp.

Security
bearerAuth
Bodyapplication/json-patch+jsonrequired
idintegerrequired
Example: 0
curl -i -X POST \
  https://developers.fuelu2.com/_mock/apis/customer/Orders/renewOrder \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json-patch+json' \
  -d '{
    "id": 0
  }'

Responses

Success

Bodyapplication/json
messagestring
Example: "Order renewed successfully"
Response
application/json
{ "message": "Order renewed successfully" }

Request

Cancels an existing order by specifying its ID, creation timestamp, and reason.

Security
bearerAuth
Bodyapplication/json-patch+jsonrequired
idintegerrequired
Example: 0
reasonstringrequired
Example: "Customer request"
curl -i -X POST \
  https://developers.fuelu2.com/_mock/apis/customer/Orders/cancel \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json-patch+json' \
  -d '{
    "id": 0,
    "reason": "Customer request"
  }'

Responses

Success

Bodyapplication/json
messagestring
Example: "Order cancelled successfully"
Response
application/json
{ "message": "Order cancelled successfully" }
Operations
Operations
Operations