GET
/
purchasedAccessory_onfetch_v2
/
{purchasedAccessoryId}
Retrieve details of a purchased accessory
curl --request GET \
  --url https://api.ekhodealer.com/purchasedAccessory_onfetch_v2/{purchasedAccessoryId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "productId": "<string>",
  "name": "<string>",
  "basePrice": 123,
  "totalPrice": 123,
  "preDiscountTotalPrice": 123,
  "specs": [
    {
      "name": "<string>",
      "price": 123,
      "option": "<string>",
      "description": "<string>",
      "id": "<string>"
    }
  ],
  "imgUrl": "<string>",
  "description": "<string>",
  "oemId": "<string>",
  "placedOrderId": "<string>",
  "buyerId": "<string>",
  "datePurchased": 123,
  "count": 123,
  "variantId": "<string>",
  "sku": "<string>",
  "boltOnVehicleIds": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

purchasedAccessoryId
string
required

Unique identifier of the purchased accessory to retrieve.

Query Parameters

oemKey
string
required

Key to identify and authenticate the OEM admin.

Response

Successfully retrieved the purchased accessory details.

id
string
required
productId
string
required
name
string
required
basePrice
number
required
totalPrice
number
required

basePrice + cost of all specs. Cost of a single accessory, not multipled by count

preDiscountTotalPrice
number
required

The total price of the accessory before any discounts are applied

specs
object[]
required
imgUrl
string
required

The URL of the image of the accessory

description
string
required
oemId
string
required
placedOrderId
string
required
buyerId
string
required
datePurchased
number
required

The date the reservation fee was paid for this accessory

count
number
required

The number of this accessory that was purchased

variantId
string
required
sku
string
required
boltOnVehicleIds
string[]

If this field exists, then accessory is bolt on. The array contains the assigned vehicle for each accessory. If vehicle isn''t assigned, array values(s) is empty string as default value. Example: ["",""]