---
title: "Get the last location of the assetNumber"
url: "https://developers.vzconnect.com/apis/non-powered-assets-update-api-1/versions/48a37afd-39c6-44f5-bb43-0acdfd2cf846/operations/getAssetLocation"
---

> Full API specification: https://developers.vzconnect.com/apis/non-powered-assets-update-api-1/versions/48a37afd-39c6-44f5-bb43-0acdfd2cf846.md

# Get the last location of the assetNumber

`GET` `/ast/v1/assets/{assetNumber}/location`

Operation ID: `getAssetLocation`

Extracts the last recorded location of a specified asset. Notes: - A location may be not found (204 No Content) if the Asset has not yet reported a location, or if it has but the last time it reported was outside the *DataPlan* of the account Sample request: GET /ast/v1/assets/A10001/location

## Path parameters

- `assetNumber` (string, required) - The AssetNumber for which to get the last location.

## Responses

- `200` - If the request was successful
- `204` - If the assetNumber was found but no location information was found within the Account's DataPlan. No content is returned.
- `400` - If the assetNumber was invalid (whitespace only, or longer than 96 characters)
- `401` - If the authentication credentials were invalid
- `403` - If the caller's security token does not contain an account Id
- `404` - If the assetNumber was not found
- `500` - If an unknown error occurred when processing the request, including when the last location could not be retrieved

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Non-Powered Assets Update API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /ast/v1/assets/{assetNumber}/location:
    get:
      tags:
        - Non-Powered Assets Update API
      summary: Get the last location of the assetNumber
      description: >-
        Extracts the last recorded location of a specified asset.


        Notes:

        - A location may be not found (204 No Content) if the Asset has not yet
        reported a location, or if it has but the last time it reported was
        outside the *DataPlan* of the account


        Sample request:

            GET /ast/v1/assets/A10001/location
      operationId: getAssetLocation
      parameters:
        - name: assetNumber
          in: path
          required: true
          schema:
            type: string
          description: The AssetNumber for which to get the last location.
          example: A10001
      responses:
        "200":
          description: If the request was successful
          content:
            application/xml:
              schema:
                $ref: "#/components/schemas/AssetGeoLocation"
            application/json:
              schema:
                $ref: "#/components/schemas/AssetGeoLocation"
              example:
                GeofenceName: VZC
                Address:
                  AddressLine1: 2 Victoria Street, Christchurch Central City, Christchurch 8013,
                    New Zealand
                  AddressLine2: ""
                  Locality: Christchurch
                  AdministrativeArea: Canterbury
                  PostalCode: "8013"
                  Country: NZL
                DeviceTimeZoneOffset: 12
                DeviceTimeZoneUseDST: false
                Latitude: -41
                Longitude: 162
                UpdateUTC: 2020-05-07T19:56:06
        "204":
          description: If the assetNumber was found but no location information was found
            within the Account's DataPlan. No content is returned.
        "400":
          description: If the assetNumber was invalid (whitespace only, or longer than 96
            characters)
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorMessage"
        "401":
          description: If the authentication credentials were invalid
          content:
            application/xml: {}
            application/json: {}
        "403":
          description: If the caller's security token does not contain an account Id
          content:
            application/xml: {}
            application/json: {}
        "404":
          description: If the assetNumber was not found
          content:
            application/xml: {}
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorMessage"
              example:
                Message: No Asset found with AssetNumber A10001
        "500":
          description: If an unknown error occurred when processing the request, including
            when the last location could not be retrieved
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorMessage"
              example:
                Message: An error occurred when processing the request. Please contact
                  VerizonConnect support.
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/ast/v1/assets/[^/]+/location/?$
components:
  schemas:
    AssetGeoLocation:
      type: object
      properties:
        GeofenceName:
          type: string
          description: Geofence is a place configured within a REVEAL account to easily
            identify particular locations. An empty string if the GPS plot does
            not occur within a Geofence.
          example: VZC
        Address:
          $ref: "#/components/schemas/Address"
        DeviceTimeZoneOffset:
          type: integer
          format: int32
          description: The GPS device's current time zone compared to UTC
          example: 12
          nullable: true
        DeviceTimeZoneUseDST:
          type: boolean
          description: If the REVEAL account is set to acknowledge Daylight Savings Time
            then this value will return as TRUE. REVEAL accounts in the United
            States are automatically defaulted to True.
          example: false
        Latitude:
          type: number
          format: double
          description: The latitude of the last location
          example: -41
        Longitude:
          type: number
          format: double
          description: The longitude of the last location
          example: 162
        UpdateUTC:
          type: string
          format: date-time
          description: The date and time stamp when the GPS plot was received
            (YEAR-MONTH-DAY T HOURS-MINUTES-SECONDS)
          example: 2020-05-07T19:56:06
      description: "Designed for Asset last Location requests\r

        /v1/assets/{assetnumber}/location"
    ErrorMessage:
      type: object
      properties:
        Message:
          type: string
          description: A human-readable description of the error
    Address:
      type: object
      properties:
        AddressLine1:
          type: string
          description: Location specific identification such as a house number
          example: 2 Victoria Street, Christchurch Central City, Christchurch 8013, New
            Zealand
        AddressLine2:
          type: string
          description: Additional information to identify location such as an apartment
            number
        Locality:
          type: string
          description: "'City' is presented to the customer as 'Locality'"
          example: Christchurch
        AdministrativeArea:
          type: string
          description: "'State' is presented to the customer as 'AdministrativeArea'"
          example: Canterbury
        PostalCode:
          type: string
          example: "8013"
        Country:
          type: string
          example: NZL
      description: Address contains the global standards for address components
```
