Update an account

To use this endpoint from the browser, you’ll need to specify the /accounts/{accountID}/profile.write scope when generating a token, and provide the changed information.

When can profile data be updated:

  • For unverified accounts, all profile data can be edited.
  • During the verification process, missing or incomplete profile data can be edited.
  • Verified accounts can only add missing profile data.

When can’t profile data be updated:

  • Verified accounts cannot change any existing profile data.

If you need to update information in a locked state, please contact Moov support.

PATCH
/accounts/{accountID}
cURL JavaScript
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
curl -X PATCH "https://api.moov.io/accounts/{accountID}" \
  -H "Authorization: Bearer {token}" \
  --data-raw '{
    "profile": {
      "business": {
        "ownersProvided": true
      }
    },
    "foreignId": "your-correlation-id"
  }'\
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
const moov = new Moov(credentialsObject);

const accountID = "accountID"
const updatedAccount = {
  profile: {
    business: {
      ownersProvided: true,
    }
  } 
};

const account = await moov.accounts.patch(accountID, updatedAccount);
200 400 404 409 422 429
The patched account.
Describes a Moov account.
{
  "accountID": "ec7e1848-dc80-4ab0-8827-dd7fc0737b43",
  "accountType": "business",
  "capabilities": [
    {
      "capability": "transfers",
      "status": "enabled"
    }
  ],
  "createdOn": "2019-08-24T14:15:22Z",
  "customerSupport": {
    "address": {
      "addressLine1": "123 Main Street",
      "addressLine2": "Apt 302",
      "city": "Boulder",
      "country": "US",
      "postalCode": "80301",
      "stateOrProvince": "CO"
    },
    "email": "amanda@classbooker.dev",
    "phone": {
      "countryCode": "1",
      "number": "8185551212"
    },
    "website": "www.wholebodyfitnessgym.com"
  },
  "disconnectedOn": "2019-08-24T14:15:22Z",
  "displayName": "Whole Body Fitness",
  "foreignID": "4528aba-b9a1-11eb-8529-0242ac13003",
  "metadata": {
    "property1": "string",
    "property2": "string"
  },
  "mode": "production",
  "profile": {
    "business": {
      "address": {
        "addressLine1": "123 Main Street",
        "addressLine2": "Apt 302",
        "city": "Boulder",
        "country": "US",
        "postalCode": "80301",
        "stateOrProvince": "CO"
      },
      "businessType": "llc",
      "description": "Local fitness gym paying out instructors",
      "doingBusinessAs": "string",
      "email": "amanda@classbooker.dev",
      "industryCodes": {
        "mcc": "7997",
        "naics": "713940",
        "sic": "7991"
      },
      "legalBusinessName": "string",
      "ownersProvided": true,
      "phone": {
        "countryCode": "1",
        "number": "8185551212"
      },
      "representatives": [],
      "taxIDProvided": false,
      "website": "www.wholebodyfitnessgym.com"
    },
    "individual": {
      "address": {
        "addressLine1": "123 Main Street",
        "addressLine2": "Apt 302",
        "city": "Boulder",
        "country": "US",
        "postalCode": "80301",
        "stateOrProvince": "CO"
      },
      "birthDateProvided": false,
      "email": "amanda@classbooker.dev",
      "governmentIDProvided": false,
      "name": {
        "firstName": "Amanda",
        "lastName": "Yang",
        "middleName": "Amanda",
        "suffix": "Jr"
      },
      "phone": {
        "countryCode": "1",
        "number": "8185551212"
      }
    }
  },
  "settings": {
    "achPayment": {
      "companyName": "Whole Body Fitness"
    },
    "cardPayment": {
      "statementDescriptor": "Whole Body Fitness"
    }
  },
  "termsOfService": {
    "acceptedDate": "2019-08-24T14:15:22Z",
    "acceptedIP": "127.0.0.1"
  },
  "updatedOn": "2019-08-24T14:15:22Z",
  "verification": {
    "details": "failedAutoVerify",
    "documents": [
      {
        "contentType": "application/pdf",
        "documentID": "e210a9d6",
        "parseErrors": [
          "string"
        ],
        "type": "DriversLicense",
        "uploadedAt": "2019-08-24T14:15:22Z"
      }
    ],
    "status": "unverified",
    "verificationStatus": "unverified"
  }
}
The request body was invalid.
No account with the specified accountID was found.
  • Account fields locked due to verification status
  • Account type cannot be changed
  • ForeignID already associated with another account
The request body could not be processed.
Request was refused due to rate limiting.

X-Retry-In

string <duration>
How long (in milliseconds) to wait until able to retry the request.

Path parameters

accountID

string <uuid> required
ID of the account.

Body

application/json
Describes the fields available when patching a Moov account.

customerSupport

object
User-provided information that can be displayed on credit card transactions for customers to use when contacting a customer support team. This data is only allowed on a business account.
right_key Show child attributes

address

object
right_key Show child attributes

addressLine1

string <=60 characters required

addressLine2

string <=32 characters

city

string <=24 characters required

country

string <=2 characters required

postalCode

string <=5 characters required

stateOrProvince

string <=2 characters required

email

string<email> <=255 characters Pattern
Email address.

phone

object
right_key Show child attributes

countryCode

string <=1 characters

number

string<phone> <=10 characters

website

string <=100 characters

foreignID

string
Optional alias from a foreign/external system which can be used to reference this resource.

metadata

object
Free-form key-value pair list. Useful for storing information that is not captured elsewhere.

profile

object
Describes the fields available when patching a profile. Each object can be patched independent of patching the other fields.
right_key Show child attributes

business

object
Describes the fields available when patching a business.
right_key Show child attributes

address

object
right_key Show child attributes

addressLine1

string <=60 characters required

addressLine2

string <=32 characters

city

string <=24 characters required

country

string <=2 characters required

postalCode

string <=5 characters required

stateOrProvince

string <=2 characters required

businessType

string
The type of entity represented by this business.
Possible values: soleProprietorship, unincorporatedAssociation, trust, publicCorporation, privateCorporation, llc, partnership, unincorporatedNonProfit, incorporatedNonProfit, governmentEntity

description

string [10 to 100] characters

doingBusinessAs

string <=64 characters Pattern

email

string
Email address.

industryCodes

object
Describes industry specific identifiers.
right_key Show child attributes

mcc

string 4 characters

naics

string [2 to 6] characters

sic

string 4 characters

legalBusinessName

string <=64 characters Pattern

ownersProvided

boolean

phone

object
right_key Show child attributes

countryCode

string <=1 characters

number

string<phone> <=10 characters

taxID

object
An EIN (employer identification number) for the business. For sole proprietors, an SSN can be used as the EIN.
right_key Show child attributes

ein

object
right_key Show child attributes

number

string <=64 characters

website

string <=100 characters

individual

object
Describes the fields available when patching an individual.
right_key Show child attributes

address

object
right_key Show child attributes

addressLine1

string <=60 characters required

addressLine2

string <=32 characters

city

string <=24 characters required

country

string <=2 characters required

postalCode

string <=5 characters required

stateOrProvince

string <=2 characters required

birthDate

object
An individual’s birthdate.
right_key Show child attributes

day

integer required

month

integer required

year

integer required

email

string
Email address.

governmentID

object
right_key Show child attributes

itin

object
right_key Show child attributes

full

string <=64 characters

lastFour

string <=4 characters

ssn

object
right_key Show child attributes

full

string <=64 characters

lastFour

string <=4 characters

name

object
An individual’s name.
right_key Show child attributes

firstName

string <=64 characters required Pattern
Name this person was given. This is usually the the same as first name.

lastName

string <=64 characters required Pattern
Family name of this person. This is usually the the same as last name.

middleName

string <=64 characters Pattern
Name this person was given. This is usually the the same as first name.

suffix

string <=20 characters Pattern
Suffix of a given name.

phone

object
right_key Show child attributes

countryCode

string <=1 characters

number

string<phone> <=10 characters

settings

object
User provided settings to manage an account.
right_key Show child attributes

achPayment

object
User provided settings to manage ACH payments.
right_key Show child attributes

companyName

string [1 to 16] characters Pattern
The description that shows up on ACH transactions. This will default to the account’s display name on account creation.

cardPayment

object
User provided settings to manage card payments. This data is only allowed on a business account.
right_key Show child attributes

statementDescriptor

string [4 to 22] characters Pattern
The description that shows up on credit card transactions. This will default to the accounts display name on account creation.

termsOfService

object
Describes the acceptance of the Terms of Service.
right_key Show child attributes
Token Manual entry
An encrypted value used to record acceptance of Moov’s Terms of Service.

token

string
Describes the acceptance of the Terms of Service. All data is required, and must be from the user.

acceptedDate

string<date-time> <=24 characters

acceptedDomain

string<url> <=255 characters

acceptedIP

string<ipv4> <=15 characters

acceptedUserAgent

string <=255 characters
The user-agent of the user making the request.

Response

application/json
Describes a Moov account.

accountID

string<uuid> <=36 characters Pattern
UUID v4

accountType

string<enum>
The type of entity represented by this account.
Possible values: individual, business

capabilities

array
right_key Show child attributes

capability

string<enum>
Identifier for the capability.
Possible values: transfers, send-funds, collect-funds, wallet, card-issuing

status

string<enum>
The status of the capability requested for an account.
Possible values: enabled, disabled, pending, in-review

createdOn

string<date-time> <=24 characters

customerSupport

object
User-provided information that can be displayed on credit card transactions for customers to use when contacting a customer support team. This data is only allowed on a business account.
right_key Show child attributes

address

object
right_key Show child attributes

addressLine1

string <=60 characters required

addressLine2

string <=32 characters

city

string <=24 characters required

country

string <=2 characters required

postalCode

string <=5 characters required

stateOrProvince

string <=2 characters required

email

string<email> <=255 characters Pattern
Email address.

phone

object
right_key Show child attributes

countryCode

string <=1 characters

number

string<phone> <=10 characters

website

string <=100 characters

disconnectedOn

string

displayName

string <=64 characters

foreignID

string <=64 characters
Optional alias from a foreign/external system which can be used to reference this resource.

metadata

object
Free-form key-value pair list. Useful for storing information that is not captured elsewhere.

mode

string<enum>
The mode this account is allowed to be used within.
Possible values: sandbox, production

profile

object
Describes a Moov account profile.
right_key Show child attributes

business

object
Describes a business.
right_key Show child attributes

address

object
right_key Show child attributes

addressLine1

string <=60 characters required

addressLine2

string <=32 characters

city

string <=24 characters required

country

string <=2 characters required

postalCode

string <=5 characters required

stateOrProvince

string <=2 characters required

businessType

string<enum>
The type of entity represented by this business.
Possible values: soleProprietorship, unincorporatedAssociation, trust, publicCorporation, privateCorporation, llc, partnership, unincorporatedNonProfit, incorporatedNonProfit, governmentEntity

description

string [10 to 100] characters

doingBusinessAs

string <=64 characters

email

string<email> <=255 characters Pattern
Email address.

industryCodes

object
Describes industry specific identifiers.
right_key Show child attributes

mcc

string 4 characters

naics

string [2 to 6] characters

sic

string 4 characters

legalBusinessName

string <=64 characters

ownersProvided

boolean required

phone

object
right_key Show child attributes

countryCode

string <=1 characters

number

string<phone> <=10 characters

representatives

array
right_key Show child attributes

address

object
right_key Show child attributes

addressLine1

string <=60 characters required

addressLine2

string <=32 characters

city

string <=24 characters required

country

string <=2 characters required

postalCode

string <=5 characters required

stateOrProvince

string <=2 characters required

birthDateProvided

boolean
Indicates whether this representative’s birth date has been provided.

createdOn

string<date-time> <=24 characters

disabledOn

string

email

string<email> <=255 characters Pattern
Email address.

governmentIDProvided

boolean
Indicates whether a government ID (SSN, ITIN, etc.) has been provided for this representative.

name

object
An individual’s name.
right_key Show child attributes

firstName

string <=64 characters required Pattern
Name this person was given. This is usually the the same as first name.

lastName

string <=64 characters required Pattern
Family name of this person. This is usually the the same as last name.

middleName

string <=64 characters Pattern
Name this person was given. This is usually the the same as first name.

suffix

string <=20 characters Pattern
Suffix of a given name.

phone

object
right_key Show child attributes

countryCode

string <=1 characters

number

string<phone> <=10 characters

representativeID

string<uuid> <=36 characters Pattern
UUID v4

responsibilities

object
Describes the job responsibilities of an individual.
right_key Show child attributes

isController

boolean required
Indicates whether this individual has significant management responsibilities within the business.

isOwner

boolean required
If true, this field indicates that the individual has a business ownership stake of at least 25% in the business. If the representative does not own at least 25% of the business, this field should be false.

jobTitle

string <=64 characters required

ownershipPercentage

integer required
The percentage of ownership this individual has in the business (required if isOwner is true).

updatedOn

string<date-time> <=24 characters

taxIDProvided

boolean
Indicates whether a tax ID has been provided for this business.

website

string <=100 characters

individual

object
Describes an individual.
right_key Show child attributes

address

object
right_key Show child attributes

addressLine1

string <=60 characters required

addressLine2

string <=32 characters

city

string <=24 characters required

country

string <=2 characters required

postalCode

string <=5 characters required

stateOrProvince

string <=2 characters required

birthDateProvided

boolean
Indicates whether this individual’s birth date has been provided.

email

string<email> <=255 characters Pattern
Email address.

governmentIDProvided

boolean
Indicates whether a government ID (SSN, ITIN, etc.) has been provided for this individual.

name

object
An individual’s name.
right_key Show child attributes

firstName

string <=64 characters required Pattern
Name this person was given. This is usually the the same as first name.

lastName

string <=64 characters required Pattern
Family name of this person. This is usually the the same as last name.

middleName

string <=64 characters Pattern
Name this person was given. This is usually the the same as first name.

suffix

string <=20 characters Pattern
Suffix of a given name.

phone

object
right_key Show child attributes

countryCode

string <=1 characters

number

string<phone> <=10 characters

settings

object
User provided settings to manage an account.
right_key Show child attributes

achPayment

object
User provided settings to manage ACH payments.
right_key Show child attributes

companyName

string [1 to 16] characters Pattern
The description that shows up on ACH transactions. This will default to the account’s display name on account creation.

cardPayment

object
User provided settings to manage card payments. This data is only allowed on a business account.
right_key Show child attributes

statementDescriptor

string [4 to 22] characters Pattern
The description that shows up on credit card transactions. This will default to the accounts display name on account creation.

termsOfService

object
Describes the acceptance of the Terms of Service.
right_key Show child attributes

acceptedDate

string<date-time> <=24 characters required

acceptedIP

string<ipv4> <=15 characters required

updatedOn

string<date-time> <=24 characters

verification

object
Describes identity verification status and relevant identity verification documents.
right_key Show child attributes

status

string<enum> required deprecated
This field is deprecated but available for use until February 2023.
Possible values: unverified, pending, verified, errored

details

string<enum> deprecated
This field is deprecated but available for use until February 2023.
Possible values: failedAutoVerify, docDobMismatch, docNameMismatch, docAddressMismatch, docNumberMismatch, docIncomplete, docFailedRisk, potentialAccountSanctionsMatch, potentialRepresentativeSanctionsMatch, failedOther

documents

array
right_key Show child attributes

contentType

string

documentID

string
A unique identifier for this document.

parseErrors

array
Optional array of errors encountered dring automated parsing.

type

string<enum>
Possible values: DriversLicense, Passport, UtilityBill, BankStatement

uploadedAt

string<date-time> <=24 characters

verificationStatus

string<enum> deprecated
This field is deprecated and will be removed in a future release.
Possible values: unverified, pending, resubmit, review, verified, failed