From 4627bc0d266deefe66018c80406fd70556205df9 Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Tue, 11 Aug 2026 16:24:25 +0800 Subject: [PATCH] fix(storefront): four requests shipped no body at all MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Authenticate a Customer via SMS, Verify a SMS code, the creation-code request and Create a Customer all carried `content: ""`. Every one of them requires a body, so each failed on its own validation — and the published API reference showed no request body for endpoints that cannot work without one. That is a documentation gap as much as a contract failure. Each body is now the minimum the controller actually requires: login-with-sms phone verify-code identity + code request-creation-code mode (email|sms) + identity customers name + email + code The values reuse the variables the contract run already injects, so the seeded customer and its verification codes satisfy them. Create a review sent "content": "" and answered "The content field is required." It now carries real review text. Co-Authored-By: Claude Opus 5 --- .../Customer/Authenticate a Customer via SMS.request.yaml | 5 ++++- .../Customer/Create a Customer.request.yaml | 7 ++++++- ...request to create a new storefront custome.request.yaml | 6 +++++- .../Customer/Verify a SMS code.request.yaml | 6 +++++- .../Reviews/Create a review.request.yaml | 2 +- 5 files changed, 21 insertions(+), 5 deletions(-) diff --git a/postman/collections/Fleetbase Storefront API/Customer/Authenticate a Customer via SMS.request.yaml b/postman/collections/Fleetbase Storefront API/Customer/Authenticate a Customer via SMS.request.yaml index 52209a7..d063187 100644 --- a/postman/collections/Fleetbase Storefront API/Customer/Authenticate a Customer via SMS.request.yaml +++ b/postman/collections/Fleetbase Storefront API/Customer/Authenticate a Customer via SMS.request.yaml @@ -8,5 +8,8 @@ headers: value: application/json body: type: json - content: "" + content: |- + { + "phone": "{{customer_phone}}" + } order: 2000 diff --git a/postman/collections/Fleetbase Storefront API/Customer/Create a Customer.request.yaml b/postman/collections/Fleetbase Storefront API/Customer/Create a Customer.request.yaml index 009f8fd..52ecf82 100644 --- a/postman/collections/Fleetbase Storefront API/Customer/Create a Customer.request.yaml +++ b/postman/collections/Fleetbase Storefront API/Customer/Create a Customer.request.yaml @@ -8,5 +8,10 @@ headers: value: application/json body: type: json - content: "" + content: |- + { + "name": "{{customer_name}}", + "email": "{{customer_identity}}", + "code": "{{verification_code}}" + } order: 7000 diff --git a/postman/collections/Fleetbase Storefront API/Customer/Setups a verification request to create a new storefront custome.request.yaml b/postman/collections/Fleetbase Storefront API/Customer/Setups a verification request to create a new storefront custome.request.yaml index 60082b0..2d8f9e2 100644 --- a/postman/collections/Fleetbase Storefront API/Customer/Setups a verification request to create a new storefront custome.request.yaml +++ b/postman/collections/Fleetbase Storefront API/Customer/Setups a verification request to create a new storefront custome.request.yaml @@ -9,5 +9,9 @@ headers: value: application/json body: type: json - content: "" + content: |- + { + "mode": "email", + "identity": "{{customer_identity}}" + } order: 4000 diff --git a/postman/collections/Fleetbase Storefront API/Customer/Verify a SMS code.request.yaml b/postman/collections/Fleetbase Storefront API/Customer/Verify a SMS code.request.yaml index 3539276..66ffa9c 100644 --- a/postman/collections/Fleetbase Storefront API/Customer/Verify a SMS code.request.yaml +++ b/postman/collections/Fleetbase Storefront API/Customer/Verify a SMS code.request.yaml @@ -8,5 +8,9 @@ headers: value: application/json body: type: json - content: "" + content: |- + { + "identity": "{{customer_identity}}", + "code": "{{verification_code}}" + } order: 3000 diff --git a/postman/collections/Fleetbase Storefront API/Reviews/Create a review.request.yaml b/postman/collections/Fleetbase Storefront API/Reviews/Create a review.request.yaml index 3aff846..35d5a3d 100644 --- a/postman/collections/Fleetbase Storefront API/Reviews/Create a review.request.yaml +++ b/postman/collections/Fleetbase Storefront API/Reviews/Create a review.request.yaml @@ -11,7 +11,7 @@ body: type: json content: |- { - "content": "", + "content": "Arrived on time and exactly as described.", "rating": 5 } order: 2000