Skip to main content
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.

Autorización

string
required
Bearer token generado desde el portal Leadway. Ver Autenticación.
string
default:"2021-07-28"
required
Versión de la API.

Path parameters

string
default:"6578278e879ad2646715ba9c"
required
ID of the product that needs to be used
string
default:"6578278e879ad2646715ba9c"
required
ID of the price that needs to be returned

Query parameters

string
default:"6578278e879ad2646715ba9c"
required
account Id

Respuestas

string
default:"655b33aa2209e60b6adb87a7"
required
The unique identifier for the price.
object[]
An array of membership offers associated with the price.
string[]
An array of variant option IDs associated with the price.
string
default:"3SwdhCsvxI8Au3KsPJt6"
The unique identifier for the account.
string
default:"655b33a82209e60b6adb87a5"
The unique identifier for the associated product.
string
default:"6YAtzfzpmHAdj0e8GkKp"
The unique identifier for the user.
string
default:"Red / S"
required
The name of the price.
string
default:"one_time"
required
The type of the price (e.g., one_time). Posibles valores: ‘one_time’, ‘recurring’
string
default:"INR"
required
The currency code for the price.
number
default:"199999"
required
The amount of the price.
object
The recurring details of the price (if type is recurring).
string
default:"2023-11-20T10:23:38.645Z"
The creation timestamp of the price.
string
default:"2024-01-23T09:57:04.852Z"
The last update timestamp of the price.
number
default:"2000000"
The compare-at price for comparison purposes.
boolean
Indicates whether inventory tracking is enabled.
number
default:"5"
Available inventory stock quantity
boolean
default:"True"
Continue selling when out of stock

Ejemplo