Skip to main content
Version: v3

Create Price for a Product

POST 

/products/:productId/price

The "Create Price for a Product" API allows adding a new price associated with a specific product to the system. Use this endpoint to create a price with the specified details for a particular product. Ensure that the required information is provided in the request payload.

Request

Version stringrequired

API Version

Available optionsv3
productId stringrequired

ID of the product that needs to be used

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