## Update a customer's identity decision `client.Customers.Review.RefreshReview(ctx, id, body) (*CustomerV1, error)` **put** `/v1/customers/{id}/refresh_review` Updates the decision of a customer's identity validation. This endpoint allows you to modify the outcome of a customer decision and is useful for correcting or updating the status of a customer's verification. ### Parameters - `id string` - `body CustomerReviewRefreshReviewParams` - `CorrelationID param.Field[string]` Optional client generated identifier to trace and debug a series of requests. - `IdempotencyKey param.Field[string]` Optional client generated value to use for idempotent requests. - `RequestID param.Field[string]` Optional client generated identifier to trace and debug a request. - `StraddleAccountID param.Field[string]` For use by platforms to specify an account id and set scope of a request. ### Returns - `type CustomerV1 struct{…}` - `Data CustomerV1Data` - `ID string` Unique identifier for the customer. - `CreatedAt Time` Timestamp of when the customer record was created. - `Email string` The customer's email address. - `Name string` Full name of the individual or business name. - `Phone string` The customer's phone number in E.164 format. - `Status string` - `const CustomerV1DataStatusPending CustomerV1DataStatus = "pending"` - `const CustomerV1DataStatusReview CustomerV1DataStatus = "review"` - `const CustomerV1DataStatusVerified CustomerV1DataStatus = "verified"` - `const CustomerV1DataStatusInactive CustomerV1DataStatus = "inactive"` - `const CustomerV1DataStatusRejected CustomerV1DataStatus = "rejected"` - `Type string` - `const CustomerV1DataTypeIndividual CustomerV1DataType = "individual"` - `const CustomerV1DataTypeBusiness CustomerV1DataType = "business"` - `UpdatedAt Time` Timestamp of the most recent update to the customer record. - `Address CustomerAddressV1` An object containing the customer's address. This is optional, but if provided, all required fields must be present. - `Address1 string` Primary address line (e.g., street, PO Box). - `City string` City, district, suburb, town, or village. - `State string` Two-letter state code. - `Zip string` Zip or postal code. - `Address2 string` Secondary address line (e.g., apartment, suite, unit, or building). - `ComplianceProfile CustomerV1DataComplianceProfileUnion` PII required to trigger Patriot Act compliant KYC verification. - `type CustomerV1DataComplianceProfileIndividualComplianceProfile struct{…}` PII required to trigger Patriot Act compliant KYC verification. - `Dob Time` Masked date of birth in ****-**-** format. - `Ssn string` Masked Social Security Number in the format ***-**-*\***. - `type CustomerV1DataComplianceProfileBusinessComplianceProfile struct{…}` Business registration data required to trigger Patriot Act compliant KYB verification. - `Ein string` Masked Employer Identification Number in the format **-**\***** - `LegalBusinessName string` The official registered name of the business. This name should be correlated with the `ein` value. - `Representatives []CustomerV1DataComplianceProfileBusinessComplianceProfileRepresentative` A list of people related to the company. Only valid where customer type is 'business'. - `Name string` - `Email string` - `Phone string` - `Website string` Official business website URL. Optional but recommended for enhanced KYB. - `Config CustomerV1DataConfig` - `ProcessingMethod string` - `const CustomerV1DataConfigProcessingMethodInline CustomerV1DataConfigProcessingMethod = "inline"` - `const CustomerV1DataConfigProcessingMethodBackground CustomerV1DataConfigProcessingMethod = "background"` - `const CustomerV1DataConfigProcessingMethodSkip CustomerV1DataConfigProcessingMethod = "skip"` - `SandboxOutcome string` - `const CustomerV1DataConfigSandboxOutcomeStandard CustomerV1DataConfigSandboxOutcome = "standard"` - `const CustomerV1DataConfigSandboxOutcomeVerified CustomerV1DataConfigSandboxOutcome = "verified"` - `const CustomerV1DataConfigSandboxOutcomeRejected CustomerV1DataConfigSandboxOutcome = "rejected"` - `const CustomerV1DataConfigSandboxOutcomeReview CustomerV1DataConfigSandboxOutcome = "review"` - `Device CustomerV1DataDevice` - `IPAddress string` The customer's IP address at the time of profile creation. Use `0.0.0.0` to represent an offline customer registration. - `ExternalID string` Unique identifier for the customer in your database, used for cross-referencing between Straddle and your systems. - `Metadata map[string, string]` Up to 20 additional user-defined key-value pairs. Useful for storing additional information about the customer in a structured format. - `Meta ResponseMetadata` Metadata about the API request, including an identifier and timestamp. - `APIRequestID string` Unique identifier for this API request, useful for troubleshooting. - `APIRequestTimestamp Time` Timestamp for this API request, useful for troubleshooting. - `ResponseType CustomerV1ResponseType` Indicates the structure of the returned content. - "object" means the `data` field contains a single JSON object. - "array" means the `data` field contains an array of objects. - "error" means the `data` field contains an error object with details of the issue. - "none" means no data is returned. - `const CustomerV1ResponseTypeObject CustomerV1ResponseType = "object"` - `const CustomerV1ResponseTypeArray CustomerV1ResponseType = "array"` - `const CustomerV1ResponseTypeError CustomerV1ResponseType = "error"` - `const CustomerV1ResponseTypeNone CustomerV1ResponseType = "none"` ### Example ```go package main import ( "context" "fmt" "github.com/straddleio/straddle-go" "github.com/straddleio/straddle-go/option" ) func main() { client := straddle.NewClient( option.WithAPIKey("My API Key"), ) customerV1, err := client.Customers.Review.RefreshReview( context.TODO(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", straddle.CustomerReviewRefreshReviewParams{ }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", customerV1.Data) } ``` #### Response ```json { "data": { "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "created_at": "2019-12-27T18:11:19.117Z", "email": "ron.swanson@pawnee.com", "name": "Ron Swanson", "phone": "+12128675309", "status": "pending", "type": "individual", "updated_at": "2019-12-27T18:11:19.117Z", "address": { "address1": "123 Main St", "city": "Anytown", "state": "CA", "zip": "12345", "address2": "Apt 1" }, "compliance_profile": { "dob": "2019-12-27", "ssn": "***-**-****" }, "config": { "processing_method": "inline", "sandbox_outcome": "standard" }, "device": { "ip_address": "192.168.1.1" }, "external_id": "external_id", "metadata": { "foo": "string" } }, "meta": { "api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "api_request_timestamp": "2019-12-27T18:11:19.117Z" }, "response_type": "object" } ```