-
Notifications
You must be signed in to change notification settings - Fork 0
Account Object
Chris edited this page Nov 7, 2019
·
2 revisions
The account
property must be defined on one of the revops-js components. It will instantiate a set of default values for the form. This allows you to set specific account details necessary to bill them later.
Only two fields are required:
-
account.accountId
- The customeraccountId
to connect with a RevOps Account. -
account.email
- The customer'semail
address. This is a unique value in RevOps. If an email already exists, the API will return a400 BAD REQUEST
The following table describes all the properties on the account object that are used to initial new accounts.
Prop | type | Description |
---|---|---|
accountId | PropTypes.string.isRequired | The customer accountId to connect with a RevOps Account. |
PropTypes.string.isRequired | The customer's email address. This is a unique value in RevOps. If an email already exists, the API will return a 400 BAD REQUEST . |
|
billingContact | PropTypes.object | Object defining email , name , phone , and title of the direct billing contact, if it is different than the account.email provided. |
onComplete(response) | PropTypes.func | This callback returns the response of a successful HTTP request. onComplete |
onError({error}) | PropTypes.func | Called when revops-js detects an error. See onError for more details. |
onValidationError() | PropTypes.func | Called when a validation error is detected See onValidationError for more details. |
Have questions, email us at support@revops.io