Wallet Create

This API allows clients to create or retrieve a wallet for a user. The client supplies an email address or phone number, and receive a wallet address (and anonymized wallet ID) in response. If a wallet has already been created for the user, the wallet address and anonymized wallet ID will be returned. If a wallet already exists for the user, the wallet is looked up and the address and ID are returned.

Endpoint Details

Headers

Query Parameters

Payload Example:

  1. By Email:

{
  "ignoreAddress": false,
  "email": "email@example.com",
}
  1. By Mobile phone

{
  "ignoreAddress": false,
  "phone": "+12223334444"
}

Examples

curl -X POST "https://sandbox.api.labs.zelus.io/v1/wallet/create" \
-H "x-api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"ignoreAddress": false, "email": "email@example.com", "phone": "+12223334444"}'

Notes

  1. Validation:

    • Ensure you have an active API key.

    • Either email or phone should be present in the request, otherwise, a validation error will be returned.

  2. If the wallet already exists for the provided email address or phone number, the previously created wallet ID will be returned.

  3. If the ignoreAddress parameter is set to true, the wallet address won't be returned.

  4. If the ignoreAddress parameter is omitted or set to false, both the wallet ID and the wallet address will be returned.

Last updated