Fuel Card API

Create fuel card.

Create fuel card.

Open Swagger Specification

Endpoint

    POST - https://api.travisroadservices.com/v1/fuel_cards
    Copy
  

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 201

FuelCardResource resource created

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