Update customer by ID
Update a customer’s metadata by their system-generated ID.
Most customer updates complete synchronously and return 200 with the updated customer.
Changing email for a customer whose Embedded Wallet signs in with an EMAIL_OTP credential, or phoneNumber for one that signs in with an SMS_OTP credential, changes how the customer signs in. The customer must first prove they control the new contact:
-
Register the new contact with
POST /auth/credentials, passingemailorphoneNumber. Grid sends a one-time code to it and returns the replacement credential. -
Verify that code with
POST /auth/credentials/{id}/verify. Grid answers204. A replacement that is not verified within 24 hours expires. -
Call
PATCH /customers/{customerId}with onlycustomerTypeand the new contact. Grid returns202withpayloadToSign,requestId, andexpiresAt. Send this soon after verifying: if the verification would lapse before the challenge does, Grid returnsAUTH_CREDENTIAL_VERIFICATION_EXPIREDinstead, and the customer must verify again. -
Use the session API keypair of an active session on the same Embedded Wallet to build an API-key stamp over
payloadToSign. Retry the same request with that full stamp as theGrid-Wallet-Signatureheader and therequestIdechoed back as theRequest-Idheader. The signed retry returns200with the updated customer, and the replacement becomes the wallet’s sign-in credential in place of the old one. If the change is still being applied, the retry returns200with aWalletOperationProcessingbody; re-send the identical signed request until it returns the customer.
A change to a sign-in contact without a verified replacement returns 400 with AUTH_CREDENTIAL_VERIFICATION_REQUIRED. Customers without an Embedded Wallet credential of that type change email or phoneNumber with a plain update. A business administrator’s credentials (those with adminReference) are not tied to the customer’s contact and keep their own email.
Update email and phoneNumber in separate PATCH calls. A request that includes both fields is rejected.
Authorizations
Headers
Full API-key stamp built over the prior payloadToSign with the session API keypair of an active session on the Embedded Wallet whose sign-in contact is changing. Required on the signed retry of a sign-in contact change; ignored on the initial call and on customer updates that complete synchronously.
Body
- Individual Customer Update Request
- Business Customer Update Request
Enhanced-due-diligence (EDD) fields available as optional patchable attributes on an individual customer. Referenced via allOf from IndividualCustomerFields, so these appear as top-level optional fields on the customer resource itself; there is no separate EDD resource. The specific set required for a given customer is driven by the KYC provider's per-jurisdiction / per-flow / per-volume-tier rules (surfaced through MISSING_FIELD errors on POST /verifications).
Email address for the customer. If the customer's Embedded Wallet signs in with an EMAIL_OTP credential, the new address must first be registered and verified as a replacement credential, and the change is sent on its own. A business administrator's credentials are not changed.
255"john.doe@example.com"
Phone number for the customer in strict E.164 format. If the customer's Embedded Wallet signs in with an SMS_OTP credential, the new number must first be registered and verified as a replacement credential, and the change is sent on its own. Send phone number and email updates as separate PATCH calls.
^\+[1-9]\d{1,14}$"+14155551234"
The individual's tax identification number: an SSN (format ###-##-####) or ITIN, or a non-US tax ID (idType NON_US_TAX_ID) with its non-US countryOfIssuance. US residents must provide an SSN or ITIN. Write-only — never returned in customer responses.
100"123-45-6789"
Structured source-of-funds categories (FLOW of funds for this account).
1A structured source-of-funds category for an individual customer (FLOW of funds into this account). Distinct from SourceOfFundsCategory, which covers business customers.
SALARY, SELF_EMPLOYMENT_INCOME, INVESTMENT_INCOME, PENSION, RENTAL_INCOME, GIFT, INHERITANCE, LOAN, SAVINGS, SALE_OF_ASSETS, OTHER Structured source-of-wealth categories (STOCK — origin of accumulated wealth).
1Origin of the customer's accumulated wealth (STOCK). Distinct from SourceOfFundsCategory which describes the FLOW of funds for this specific account.
SALARY, BUSINESS_INCOME, INVESTMENTS, INHERITANCE, PROPERTY_SALE, GIFT, RETIREMENT, SAVINGS, OTHER The intended purpose for using the Grid account
CONTRACTOR_PAYOUTS, CREATOR_PAYOUTS, EMPLOYEE_PAYOUTS, MARKETPLACE_SELLER_PAYOUTS, SUPPLIER_PAYMENTS, CROSS_BORDER_B2B, AR_AUTOMATION, AP_AUTOMATION, EMBEDDED_PAYMENTS, PLATFORM_FEE_COLLECTION, P2P_TRANSFERS, CHARITABLE_DONATIONS, OTHER "CONTRACTOR_PAYOUTS"
Political exposure declaration (Politically Exposed Person status). HIO = head of an international organization. FAMILY_OR_ASSOCIATE covers close family members and known close associates of a PEP.
NONE, DOMESTIC, FOREIGN, HIO, FAMILY_OR_ASSOCIATE "NONE"
Response
Customer updated successfully. For a sign-in contact change, this is returned only on the signed retry: the updated customer once the change has landed, or a WalletOperationProcessing body with status: "PROCESSING" while it is still being applied. Re-send the identical signed request until it returns the customer.
- Individual Customer
- Business Customer
- Wallet Operation Processing
Enhanced-due-diligence (EDD) fields available as optional patchable attributes on an individual customer. Referenced via allOf from IndividualCustomerFields, so these appear as top-level optional fields on the customer resource itself; there is no separate EDD resource. The specific set required for a given customer is driven by the KYC provider's per-jurisdiction / per-flow / per-volume-tier rules (surfaced through MISSING_FIELD errors on POST /verifications).
Structured source-of-funds categories (FLOW of funds for this account).
1A structured source-of-funds category for an individual customer (FLOW of funds into this account). Distinct from SourceOfFundsCategory, which covers business customers.
SALARY, SELF_EMPLOYMENT_INCOME, INVESTMENT_INCOME, PENSION, RENTAL_INCOME, GIFT, INHERITANCE, LOAN, SAVINGS, SALE_OF_ASSETS, OTHER Structured source-of-wealth categories (STOCK — origin of accumulated wealth).
1Origin of the customer's accumulated wealth (STOCK). Distinct from SourceOfFundsCategory which describes the FLOW of funds for this specific account.
SALARY, BUSINESS_INCOME, INVESTMENTS, INHERITANCE, PROPERTY_SALE, GIFT, RETIREMENT, SAVINGS, OTHER The intended purpose for using the Grid account
CONTRACTOR_PAYOUTS, CREATOR_PAYOUTS, EMPLOYEE_PAYOUTS, MARKETPLACE_SELLER_PAYOUTS, SUPPLIER_PAYMENTS, CROSS_BORDER_B2B, AR_AUTOMATION, AP_AUTOMATION, EMBEDDED_PAYMENTS, PLATFORM_FEE_COLLECTION, P2P_TRANSFERS, CHARITABLE_DONATIONS, OTHER "CONTRACTOR_PAYOUTS"
Political exposure declaration (Politically Exposed Person status). HIO = head of an international organization. FAMILY_OR_ASSOCIATE covers close family members and known close associates of a PEP.
NONE, DOMESTIC, FOREIGN, HIO, FAMILY_OR_ASSOCIATE "NONE"