Add Global Profile API support - #86
Open
tholovina-sift wants to merge 3 commits into
Open
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
- Add missing Region field to LocationConnectedAccountJson (P2) - Make HasLinks/LinkCount nullable in ProfileSummaryJson (P2) - Change count fields from int to long to match server types (P3) Co-Authored-By: Claude <noreply@anthropic.com>
System.MissingFieldException and Sift.MissingFieldException are both in scope; use the fully qualified Sift.MissingFieldException. Co-Authored-By: Claude <noreply@anthropic.com>
tholovina-sift
marked this pull request as ready for review
August 20, 2026 16:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose:
GET /v3/accounts/{accountId}/global_profile/users/{userId}(lookup by Sift user ID) andPOST /v3/accounts/{accountId}/global_profile/lookup(lookup by email and/or phone)Technical overview:
GlobalProfileRequest— GET endpoint; takesAccountId,UserId, and optionalGlobalOnly(bool?) andIncludeOwnData(bool?) query params; params are only added to the URL when explicitly set so server-side defaults apply otherwiseGlobalProfileLookupRequest— POST endpoint; takesAccountId,Email, andPhone; throwsMissingFieldExceptionclient-side before the request is built when bothEmailandPhoneare missing, mirroring the existing required-field validation patternGlobalProfileResponse : SiftResponsewith nested POCOs for all response fields (ProfileSummaryJson,IdentityAgeJson,UserDecisionsJson,ChargebacksJson,OrdersJson,TransactionsJson,LocationsJson,LocationConnectedAccountJson); all nested objects and count fields are nullable soidentity_found: falseresponses deserialize cleanlyClientgainsSendAsync(GlobalProfileRequest)andSendAsync(GlobalProfileLookupRequest)overloads following the existingSendAsync<T>dispatch patternTesting plan:
status=0, error_message=OKwithidentity_found=True,link_count=31, and fully populated location entries includingcity,region, andcountryDeployment plan:
Related documentation is updated
README.md: new "Global Profile" section with usage examples for both endpoints; version heading bumped to v1.8.0CHANGES.MD: new1.8.0entrySift/Sift.csproj: version bumped to1.8.0Merge when Global Profile API is publicly available
Merge before https://github.com/SiftScience/sift-docs/pull/92
Rollback plan:
Customer Impact Assessment: