From 8bb5c2a9de2b8845b620b54b9654f471942e2aa6 Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Sat, 14 Nov 2026 11:55:39 +0800 Subject: [PATCH] fix(customers): leave phone out of the customer profile update Sending the account's own number back, as #73 did, is accepted, and Fleet-Ops mirrors it onto the linked user. In the contract run that user is shared with the seeded customer, so the seeded number stopped matching anyone and Request Customer Login SMS answered 400 "No customer with this phone number found." The update now changes name and email only. Changing a phone has its own verified flow (`phone_code`), still documented in the params. Removes created_customer_phone, which nothing reads now. --- postman/collections/Fleetbase API/.resources/definition.yaml | 1 - .../Fleetbase API/Customers/Create a Customer.request.yaml | 3 --- .../Customers/Update Authenticated Customer.request.yaml | 1 - 3 files changed, 5 deletions(-) diff --git a/postman/collections/Fleetbase API/.resources/definition.yaml b/postman/collections/Fleetbase API/.resources/definition.yaml index 8bba6bd..970e8f2 100644 --- a/postman/collections/Fleetbase API/.resources/definition.yaml +++ b/postman/collections/Fleetbase API/.resources/definition.yaml @@ -38,7 +38,6 @@ variables: customer_name: "" customer_password: "" customer_phone: "" - created_customer_phone: "" verification_code: "" push_token: "" # Deliberately NOT declaring driver_identity / driver_password / driver_phone: diff --git a/postman/collections/Fleetbase API/Customers/Create a Customer.request.yaml b/postman/collections/Fleetbase API/Customers/Create a Customer.request.yaml index 07b0689..84d4691 100644 --- a/postman/collections/Fleetbase API/Customers/Create a Customer.request.yaml +++ b/postman/collections/Fleetbase API/Customers/Create a Customer.request.yaml @@ -31,9 +31,6 @@ scripts: if (json_response && json_response.id) { cv.set("customer_id", json_response.id); cv.set("customer_name", json_response.name); - // The number this account was created with. Update Authenticated Customer sends it back, - // because changing to another number needs a code sent to that number. - cv.set("created_customer_phone", json_response.phone); if (json_response.token) { cv.set("customer_token", json_response.token); } diff --git a/postman/collections/Fleetbase API/Customers/Update Authenticated Customer.request.yaml b/postman/collections/Fleetbase API/Customers/Update Authenticated Customer.request.yaml index 14b3199..a5b8e7a 100644 --- a/postman/collections/Fleetbase API/Customers/Update Authenticated Customer.request.yaml +++ b/postman/collections/Fleetbase API/Customers/Update Authenticated Customer.request.yaml @@ -11,7 +11,6 @@ body: content: |- { "name": "{{customer_name}}", - "phone": "{{created_customer_phone}}", "email": "{{customer_email}}" }