From e2730bbfdb9d7aba21f21416ed1b244fe8e4ba0c Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Tue, 11 Aug 2026 02:52:44 +0800 Subject: [PATCH] fix(storefront): resolve two path placeholders that were never substituted MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Retrieve a Product and Update a Customer wrote their path id with single braces and an empty pathVariables entry: url: ".../products/{id}" pathVariables: id: "" `{id}` is not a Postman variable, so the request went to /products/%7Bid%7D and the API answered "Product resource not found." Update Product, in the same folder, already used {{product_id}} directly and worked — so the collection had both conventions side by side. Both now use the variable the collection actually captures, matching the working convention, and the empty pathVariables block is dropped. Nine more requests share this shape but are deliberately left alone: their ids have no source yet. cart_id comes from Retrieve or Create Cart, which still returns 500 (CartController::retrieve, "Too few arguments"); gateway_id comes from the gateways list, which returns []; review_id needs a review that can be created. Changing those now would be speculative, and two of them — Retrieve a Cart and Empty cart — currently PASS with the placeholder unresolved, so touching them risks turning passing requests red for no gain. Co-Authored-By: Claude Opus 5 --- .../Customer/Update a Customer.request.yaml | 4 +--- .../Products/Retrieve a Product.request.yaml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/postman/collections/Fleetbase Storefront API/Customer/Update a Customer.request.yaml b/postman/collections/Fleetbase Storefront API/Customer/Update a Customer.request.yaml index aafcc42..3580ac2 100644 --- a/postman/collections/Fleetbase Storefront API/Customer/Update a Customer.request.yaml +++ b/postman/collections/Fleetbase Storefront API/Customer/Update a Customer.request.yaml @@ -1,13 +1,11 @@ $kind: http-request description: |- Updates a storefront customer profile. The response returns the customer with the new values applied. -url: "{{base_url}}/{{api_prefix}}/{{namespace}}/customers/{id}" +url: "{{base_url}}/{{api_prefix}}/{{namespace}}/customers/{{customer_id}}" method: PUT headers: - key: Content-Type value: application/json -pathVariables: - id: "" body: type: json content: "" diff --git a/postman/collections/Fleetbase Storefront API/Products/Retrieve a Product.request.yaml b/postman/collections/Fleetbase Storefront API/Products/Retrieve a Product.request.yaml index f7f3741..ba1525a 100644 --- a/postman/collections/Fleetbase Storefront API/Products/Retrieve a Product.request.yaml +++ b/postman/collections/Fleetbase Storefront API/Products/Retrieve a Product.request.yaml @@ -1,8 +1,6 @@ $kind: http-request description: |- Retrieves a single storefront product by ID. The response includes product details, pricing, variants, and related catalog data when available. -url: "{{base_url}}/{{api_prefix}}/{{namespace}}/products/{id}" +url: "{{base_url}}/{{api_prefix}}/{{namespace}}/products/{{product_id}}" method: GET -pathVariables: - id: "" order: 3000 \ No newline at end of file