Skip to main content
Version: v3

Update Price by ID for a Product

PUT 

/products/:productId/price/:priceId

The "Update Price by ID for a Product" API allows modifying information for a specific price associated with a particular product using its unique identifier. Use this endpoint to update 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

application/json

Bodyrequired

    namestringrequired

    The name of the price.

    typestringrequired

    The type of the price.

    Available optionsone_timerecurring
    currencystringrequired

    The currency of the price.

    amountnumberrequired

    The amount of the price. ( min: 0 )

    recurringobject

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

    descriptionstring

    A brief description of the price.

    membershipOffersobject[]

    An array of membership offers associated with the price.

    trialPeriodnumber

    The trial period duration in days (if applicable).

    totalCyclesnumber

    The total number of billing cycles for the price. ( min: 1 )

    setupFeenumber

    The setup fee for the price.

    variantOptionIdsstring[]

    An array of variant option IDs associated with the price.

    compareAtPricenumber

    The compare at price for the price.

    locationIdstringrequired

    The unique identifier of the location associated with the price.

    userIdstring

    The unique identifier of the user who created the price.

    metaobject

    Additional metadata associated with the price.

    trackInventoryboolean

    Need to track inventory stock quantity

    availableQuantitynumber

    Available inventory stock quantity

    allowOutOfStockPurchasesboolean

    Continue selling when out of stock

    skustring

    The unique identifier of the SKU associated with the price

    shippingOptionsobject

    Shipping options of the Price

    isDigitalProductboolean

    Is the product a digital product

    digitalDeliverystring[]

    Digital delivery options

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