GET
/v1/product-variants/{id}/feesRetrieves all fees applicable to a product variant. Returns fees from both the parent product and the product category (if the product belongs to a category). Product fees are directly associated with the variant's parent product, while category fees are inherited from the product's category. Requires ProductVariantRead permission on the variant's product organization.
Parameters
Request parameters for this endpoint
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | Required | Product variant public ID (pub_id) to retrieve fees for |
Response Data
Fields returned in the response
Always Present
| Name | Type | Description |
|---|---|---|
categoryFees | array<ProductFeeResponse> | Fees inherited from the product category |
productFees | array<ProductFeeResponse> | Fees directly associated with the product |
GET
/v1/product-variants/{id}/feesRequest
curl https://api.thesweetspot.com/v1/product-variants/id_123/fees \
-H "Content-Type: application/json"Response
{
"categoryFees": [
{}
],
"productFees": [
{}
]
}