Fuel Card API

Update fuel card.

Update fuel card.

Open Swagger Specification

Endpoint

    PUT - https://api.travisroadservices.com/v1/fuel_cards/{id}
    Copy
  

Path params

Parameter Type Description
id string FuelCardResource identifier

Request body

Fields

Field Type Required Description
provider integer Yes ID of the fuel card provider.
cardNumber string Yes The fuel card number.
expirationDate string No Expiration date of the fuel card in YYYY-MM format.
serviceCode integer No Service code associated with the fuel card.
mainCard boolean No Indicates whether this is the main fuel card for the vehicle.

Example

Response body

Response 200

FuelCardResource resource updated

Fields

Field Type Description
id integer Unique identifier of the fuel card.
provider integer ID of the fuel card provider.
cardNumber string The fuel card number.
expirationDate string Expiration date of the fuel card in YYYY-MM format.
serviceCode integer Service code associated with the fuel card.
linkedVehiclesAmount integer Number of vehicles linked to this fuel card.
mainCard boolean Indicates whether this is the main fuel card for the vehicle.
status string Current status of the fuel card (e.g. pending, activated, blocked, expired).
import object Import reference that created this fuel card, if applicable.
id string (uuid) Unique identifier of the import.

Example