[grid] add customer phoneNumber API surface#626
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
✱ Stainless preview builds for gridThis PR will update the cli csharp go kotlin openapi php python ruby typescript Edit this comment to update them. They will appear in their respective SDK's changelogs. ✅ grid-cli studio · code · diff
✅ grid-openapi studio · code · diff
✅ grid-ruby studio · code · diff
✅ grid-go studio · code · diff
✅ grid-kotlin studio · code · diff
✅ grid-python studio · code · diff
✅ grid-php studio · code · diff
✅ grid-typescript studio · code · diff
✅ grid-csharp studio · code · diff
This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push. |

Summary
phoneNumberto customer create, update, and response schemas.phoneNumberas strict E.164 (+plus country code and subscriber number).PATCH /customers/{customerId}docs to cover SMS OTP signed retry and to reject combinedemail+phoneNumbercontact updates.2026-06-26.Endpoint structure after this change
Create customer
Response includes the same top-level contact fields:
{ "id": "Customer:...", "customerType": "INDIVIDUAL", "email": "jane.smith@example.com", "phoneNumber": "+14155551234", "umaAddress": "$jane.smith@example.umadomain", "createdAt": "2026-06-26T12:00:00Z", "updatedAt": "2026-06-26T12:00:00Z" }Synchronous phone update
If no tied
SMS_OTPcredentials need Turnkey sync, the endpoint returns200with the updated customer andphoneNumber.Signed SMS OTP phone update
Initial call returns
202:{ "payloadToSign": "{\"organizationId\":\"org_...\",\"parameters\":{\"userId\":\"user_...\",\"userPhoneNumber\":\"+14155559876\"},\"timestampMs\":\"1775681700000\",\"type\":\"ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER\"}", "requestId": "Request:...", "expiresAt": "2026-04-08T15:35:00Z" }The retry sends the same request body plus
Grid-Wallet-SignatureandRequest-Id; success returns200with the updated customer.Rejected combined contact update
This shape is documented as rejected; clients should send separate PATCH calls.
Validation
make buildmake lint