Skip to content

fix(customers): leave phone out of the customer profile update - #75

Merged
roncodes merged 1 commit into
mainfrom
fix/update-customer-no-phone
Nov 14, 2026
Merged

roncodes merged 1 commit into
mainfrom
fix/update-customer-no-phone

Conversation

@roncodes

Copy link
Copy Markdown
Member

Summary

Follow-up to #73. Update Authenticated Customer no longer sends phone.

#73 made the request send the account's own number back. The API accepts that and Fleet-Ops mirrors the number onto the linked user. In the contract run, Create a Customer makes its customer under the seeded customer's email (ci-customer@fleetbase.local), so the two share a user record. The mirrored random number replaced the seeded +15555550123, and Request Customer Login SMS, which asks for that number, then answered 400 No customer with this phone number found.

  • The update changes name and email only.
  • phone_code stays documented in the params. Changing a number has its own verified flow, which this collection doesn't cover yet.
  • created_customer_phone is removed; nothing reads it now.

Related Issue

Found by fleetbase/fleetops#426's contract run: run 43413319115. It had 1 failure in 388 assertions, and this was it. Update Authenticated Customer itself passed in that run.

Type of Change

  • Bug fix

Validation

  • Lint
npm run postman:lint
  Fleetbase API (246), Core API (24), Integrated Vendor Flow (7), Ledger API (8), Storefront API (87): Errors 0, Warnings 0

Not run before opening: the contract itself. Contract runs read postman main, so fleetops#426's contract is re-run after this merges, and that's the check.

Documentation Impact

  • No documentation changes needed

No request is added or removed, so fleetbase-php's contract-lock.json and the fleetbase.io catalog are unaffected. The generated reference shows the update body without phone on its next regeneration.

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.
@roncodes
roncodes merged commit 0a01999 into main Nov 14, 2026
1 check passed
@roncodes
roncodes deleted the fix/update-customer-no-phone branch November 14, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant