Skip to main content
PUT
/
wallets
/
{walletId}
Update Wallet
curl --request PUT \
  --url https://api.g2cplatform.com/v2/wallets/{walletId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "email": "[email protected]",
  "status": "active",
  "metadata": {}
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "username": "<string>",
  "status": "active",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "email": "[email protected]",
  "blockchainAddress": "<string>",
  "metadata": {}
}

Authorizations

X-API-Key
string
header
required

API key for authenticating requests. Include in X-API-Key header.

Path Parameters

walletId
string<uuid>
required

Wallet identifier

Body

application/json
email
string<email>
status
enum<string>
Available options:
active,
inactive,
suspended
metadata
object

Response

Wallet updated successfully

id
string<uuid>
required

Unique identifier for the wallet

username
string
required

Unique username for the wallet

status
enum<string>
required

Current status of the wallet

Available options:
active,
inactive,
suspended
createdAt
string<date-time>
required

When the wallet was created

updatedAt
string<date-time>
required

When the wallet was last updated

email
string<email>

Email address associated with the wallet

blockchainAddress
string

Blockchain address for the wallet

metadata
object

Additional metadata as key-value pairs