Fuel Card API
Get fuel card.
Retrieves a FuelCardResource resource.
Endpoint
GET - https://api.travisroadservices.com/v1/fuel_cards/{id}
Copy
Path params
| Parameter | Type | Description |
|---|---|---|
id
|
string | FuelCardResource identifier |
Request body
No request bodyResponse body
Response 200
FuelCardResource resource
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
Response 401
No response body - No bearer token set verify if your token is added as bearer tokenResponse 403
No response body - You don't have access to this API resourceResponse 404
Not found
Fields
| Field | Type | Description |
|---|---|---|
title
|
string | A short, human-readable summary of the problem. |
detail
|
string | A human-readable explanation specific to this occurrence of the problem. |
status
|
number | The HTTP status code applicable to this problem. |
instance
|
string | A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. |
type
|
string | A URI reference that identifies the problem type |
Example