Skip to main content
Version: v3

Get Price by ID for a Product

GET 

/products/:productId/price/:priceId

The "Get Price by ID for a Product" API allows retrieving information for a specific price associated with a particular product using its unique identifier. Use this endpoint to fetch details for a single price based on the provided price ID and product ID.

Request

Version stringrequired

API Version

Available optionsv3
productId stringrequired

ID of the product that needs to be used

priceId stringrequired

ID of the price that needs to be returned

locationId stringrequired

location Id

application/json

Successful response

Schema
    _idstringrequired

    The unique identifier for the price.

    membershipOffersobject[]

    An array of membership offers associated with the price.

    variantOptionIdsstring[]

    An array of variant option IDs associated with the price.

    locationIdstring

    The unique identifier for the location.

    productstring

    The unique identifier for the associated product.

    userIdstring

    The unique identifier for the user.

    namestringrequired

    The name of the price.

    typestringrequired

    The type of the price (e.g., one_time).

    Available optionsone_timerecurring
    currencystringrequired

    The currency code for the price.

    amountnumberrequired

    The amount of the price.

    recurringobject

    The recurring details of the price (if type is recurring).

    createdAtstring<date-time>

    The creation timestamp of the price.

    updatedAtstring<date-time>

    The last update timestamp of the price.

    compareAtPricenumber

    The compare-at price for comparison purposes.

    trackInventoryboolean

    Indicates whether inventory tracking is enabled.

    availableQuantitynumber

    Available inventory stock quantity

    allowOutOfStockPurchasesboolean

    Continue selling when out of stock