Create a new account
This method creates a new account.
- The Diem MiniWallet Test Suite isolates test data by creating a new account for each test case.
- Client should store the response account ID for all the operations to the account.
- The balances property value shows the initial currency deposits to the account. Client can use the get account balances endpoint to check the account balances available after creating the account.
- When the account is required to provide Know Your Customer (KYC) data during an off-chain transaction, the server should use the kyc_data property value as the KycDataObject and send it to the counterparty service.
Request body
Example request
{
"kyc_data": {
"type": "individual",
"payload_version": 1,
"given_name": "Tom",
"surname": "Jack"
},
"balances": {
"XUS": 1000000000
}
}Response
Account is created; currency balances are deposited to the account if provided.
Changes
Changed in 3 of the 6 revisions of this API.4108
- ▲
added the new required request property
kyc_data/payload_versionnew-required-request-property
- ▲
added the new required request property
kyc_data/typenew-required-request-property
- ▲
the
kyc_datarequest property type/format changed fromstring/toobject/request-property-type-changed
- ○
added the new optional request property
kyc_data/addressnew-optional-request-property
- ○
added the new optional request property
kyc_data/dobnew-optional-request-property
- ○
added the new optional request property
kyc_data/given_namenew-optional-request-property
- ○
added the new optional request property
kyc_data/legal_entity_namenew-optional-request-property
- ○
added the new optional request property
kyc_data/national_idnew-optional-request-property
- ○
added the new optional request property
kyc_data/place_of_birthnew-optional-request-property
- ○
added the new optional request property
kyc_data/surnamenew-optional-request-property
- ▲
- ●
removed the optional property
kyc_datafrom the response with the201statusresponse-optional-property-removed
- ●
- ▲
the
kyc_datarequest property type/format changed fromobject/tostring/request-property-type-changed
- ●
removed the request property
kyc_data/addressrequest-property-removed
- ●
removed the request property
kyc_data/dobrequest-property-removed
- ●
removed the request property
kyc_data/given_namerequest-property-removed
- ●
removed the request property
kyc_data/legal_entity_namerequest-property-removed
- ●
removed the request property
kyc_data/national_idrequest-property-removed
- ●
removed the request property
kyc_data/payload_versionrequest-property-removed
- ●
removed the request property
kyc_data/place_of_birthrequest-property-removed
- ●
removed the request property
kyc_data/surnamerequest-property-removed
- ●
removed the request property
kyc_data/typerequest-property-removed
- ○
added the optional property
kyc_datato the response with the201statusresponse-optional-property-added
This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲