Create Wallet
post
{baseUrl}/v1/uwaas/wallets/provision
Provisions a wallet for a user in an organization and service instance.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
instanceId: string
Example:
{{instanceId}} -
org: object
org
-
wallet: object
wallet
Example:
{
"org":{
"orgId":"{{orgId}}",
"organizationName":"Acme Corp",
"status":"ACTIVE",
"description":"wrapper-test-description"
},
"instanceId":"{{instanceId}}",
"wallet":{
"user":{
"userId":"{{userId}}",
"displayName":"Example User",
"email":"user@example.com",
"roleId":1,
"status":"ACTIVE"
},
"walletLabel":"UWaaS-auxiliary",
"walletType":"1",
"status":"ACTIVE",
"walletTags":[
"e:dev",
"a:erc20"
]
}
}Nested Schema : org
Type:
Show Source
object-
description: string
Example:
wrapper-test-description -
organizationName: string
Example:
Acme Corp -
orgId: string
Example:
{{orgId}} -
status: string
Example:
ACTIVE
Example:
{
"orgId":"{{orgId}}",
"organizationName":"Acme Corp",
"status":"ACTIVE",
"description":"wrapper-test-description"
}Nested Schema : wallet
Type:
Show Source
object-
status: string
Example:
ACTIVE -
user: object
user
-
walletLabel: string
Example:
UWaaS-auxiliary -
walletTags: array
walletTags
-
walletType: string
Example:
1
Example:
{
"user":{
"userId":"{{userId}}",
"displayName":"Example User",
"email":"user@example.com",
"roleId":1,
"status":"ACTIVE"
},
"walletLabel":"UWaaS-auxiliary",
"walletType":"1",
"status":"ACTIVE",
"walletTags":[
"e:dev",
"a:erc20"
]
}Nested Schema : user
Type:
Show Source
object-
displayName: string
Example:
Example User -
email: string
Example:
user@example.com -
roleId: integer
Example:
1 -
status: string
Example:
ACTIVE -
userId: string
Example:
{{userId}}
Example:
{
"userId":"{{userId}}",
"displayName":"Example User",
"email":"user@example.com",
"roleId":1,
"status":"ACTIVE"
}Nested Schema : walletTags
Type:
Show Source
array-
Array of:
string
Example:
e:dev
Example:
[
"e:dev",
"a:erc20"
]Security
-
OAuth2Password: oauth2
Type:
oauth2
Response
Supported Media Types
- application/json
201 Response
Dependencies were created or reused and the wallet was created successfully.
Root Schema : UWAAS_ProvisionWalletResponse
Type:
Show Source
object-
network(required): object
network
Additional Properties Allowed:
true -
org(required): object
org
Additional Properties Allowed:
true -
user(required): object
user
Additional Properties Allowed:
true -
wallet(required): object
wallet
Additional Properties Allowed:
true
Nested Schema : network
Type:
objectAdditional Properties Allowed:
trueNested Schema : org
Type:
objectAdditional Properties Allowed:
trueNested Schema : user
Type:
objectAdditional Properties Allowed:
trueNested Schema : wallet
Type:
objectAdditional Properties Allowed:
true400 Response
The wrapper rejected the request before it could complete a downstream call.
405 Response
The HTTP method is not supported for this resource.
415 Response
Content-Type must be application/json.
502 Response
The wrapper could not complete the downstream call.