Skip to main content

Retrieve Purchase Detail

GET 

https://secure.fleetio.com/api/v1/purchase_details/:id

Retrieve the details of an existing Purchase Detail.

Request

Path Parameters

    id stringrequired

    Possible values: Value must match regular expression ^[0-9]+$

    The id of the relevant record

Responses

OK

Schema
    idId (integer)required

    Possible values: >= 1

    created_atdate-time

    The date and time at which this record was created.

    Example: 2023-03-14T13:46:27-06:00
    updated_atdate-time

    The date and time at which this record was most recently updated.

    Example: 2023-03-14T13:46:27-06:00
    commentstringnullablerequired

    Any additional information about the purchase.

    datestringnullablerequired

    The date of the purchase.

    meter_entry_valuefloatnullablerequired

    The meter value at the time of purchase.

    meter_entry objectnullable

    A Meter Entry

    idinteger
    created_atdate-time
    updated_atdate-time
    auto_voided_atdate-timenullable

    The date and time at which this Meter Entry was automatically voided. Formatted according to ISO-8601 in User's local time.

    Example: 2023-03-14T13:46:27-06:00
    categorystringnullable

    A category to describe the function of this Meter Entry.

    Possible values: [starting, ending, nightly, manual]

    meter_typestringnullable

    Indicates whether or not this Meter is a secondary Meter.

    Possible values: [secondary]

    meterable_idNullableId (integer)nullable

    Possible values: >= 1

    meterable_typestringnullable

    The type of the object with which this Meter Entry is associated.

    Possible values: [FuelEntry, Issue, PurchaseDetail, ServiceEntry, SubmittedInspectionItem, VehicleAssignment, WorkOrder]

    valuestring

    The current value of the meter.

    vehicle_idNullableId (integer)nullable

    Possible values: >= 1

    voidboolean

    Indicates whether or not this Meter Entry has been voided.

    Default value: false
    typestringnullable

    Possible values: [GpsMeterEntry]

    datedate

    The date on which this Meter Entry was recorded. Formatted according to ISO-8601.

    Example: 2023-03-14
    vehicle_idNullableId (integer)nullablerequired

    Possible values: >= 1

    vehicle_namestringnullablerequired

    The name of the Vehicle.

    vendor_idNullableId (integer)nullablerequired

    Possible values: >= 1

    vendor_namestringnullablerequired

    The name of the Vendor.

    warranty_expiration_datestringnullablerequired

    The expiration date of the warranty, if applicable.

    warranty_expiration_meter_valueintegernullablerequired

    The meter value at which the warranty would expire, if applicable.

    pricefloatnullablerequired

    The price of the Vehicle.

    custom_fieldsobjectnullablerequired

    *Full details on working with Custom Fields here.

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64".
You can generate a new API key [here](https://secure.fleetio.com/api_keys).
name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)

Request Collapse all
Base URL
https://secure.fleetio.com/api
Auth
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!