POST
/v1/product-variants/bulk/fetchFetches multiple product variants by their public IDs in a single request. Returns variants with computed pricing for all available lease terms. IDs that are not found or not accessible are returned in the not_found array.
Request Body
Fields in the request body
Required
| Name | Type | Description |
|---|---|---|
ids | array<ProductVariantPubId> | List of product variant public IDs to fetch |
Response Data
Fields returned in the response
Always Present
| Name | Type | Description |
|---|---|---|
notFound | array<string> | IDs that were not found |
results | array<ProductVariantWithPricing> | Successfully fetched product variants with pricing |
POST
/v1/product-variants/bulk/fetchRequest
curl https://api.thesweetspot.com/v1/product-variants/bulk/fetch \
-X POST \
-H "Content-Type: application/json" \
-d '{
"ids": [
"string"
]
}'Response
{
"notFound": [
"string"
],
"results": [
{}
]
}