API Reference
API Reference

Wallet

Create Wallet Create a wallet linked to a customer. Optionally, generate access credentials for future use.

Upon creating a wallet, the client is assigned an internal ID that identifies their wallet within the system.While this process does not inherently provide funds to the client, it equips them with the necessary infrastructure to receive, store, and manage funds.The digital wallet serves as a foundational element for clients to participate in various financialactivities, facilitating the seamless execution of transactions.


🔗 Endpoint

POST /api/v1/bank/wallet/


📥 Payload (JSON)

{
  "entity_uuid": "fead5d6f-0125-44e0-a26c-1b7ddsd9bf1",
  "customer_id": "[email protected]",
  "name": "Jhon Does",
  "email": "[email protected]",
  "create_credentials": true
}

🧾 Fields

FieldTypeRequiredDescription
entity_uuidstringYesUUID of the entity (the account or company that owns the wallet)
customer_idstringYesUnique identifier for the customer (can be an email or internal ID)
namestringYesCustomer's full name
emailstringYesCustomer's email address
create_credentialsbooleanNoWhether to generate OAuth2 credentials for the wallet


✅ Response

Success – 201 Created

{
  "wallet_uuid": "3ecea5d7-4f06-4485-ab38-a5f9c05678",
  "credentials": {
    "client_id": "6vhvv7vid945667856cm",
    "client_secret": "264568ld10u39ektjjd7686783cob8v6vq8h1vd4phi18v",
    "grant_type": "client_credentials",
    "scopes": [
      "product_manager/bank.wallet.read",
      "product_manager/bank.wallet.write"
    ]
  }
}

🔐 Response Fields

FieldTypeDescription
wallet_uuidstringUnique identifier of the created wallet
credentialsobjectOAuth2 credentials (only returned if create_credentials is true)
client_idstringClient ID used for OAuth2 authentication
client_secretstringClient secret used for OAuth2 authentication
grant_typestringAuthentication type (always client_credentials)
scopesarrayPermissions granted to the credentials

⚠️ Notes

  • The client_secret is returned only once. Make sure to store it securely.
  • These credentials should be used for authenticated requests related to the wallet.
  • If create_credentials is omitted or set to false, the wallet will be created without any credentials.

📘 Get Wallet

Retrieve the details of an existing wallet by providing the wallet_uuid, email, and customer_id.


🔗 Endpoint

GET /api/v1/bank/wallet/?

📤 Query Parameters

ParameterTypeRequiredDescription
wallet_uuidstringNoThe unique identifier of the wallet
emailstringNoThe email associated with the wallet
customer_idstringNoThe customer identifier (usually matches the email)

✅ Response

Success – 200 OK

{
  "wallet_uuid": "80x80dfa-7044-4492-a695-b3916b43b2da",
  "email": "[email protected]",
  "customer_id": "[email protected]",
  "local_balance": 0,
  "currency": "BRL",
  "date": "2025-06-16T00:00:00"
}

🔍 Response Fields

FieldTypeDescription
wallet_uuidstringUnique identifier of the wallet
emailstringEmail address linked to the wallet
customer_idstringIdentifier of the customer (can be same as email)
local_balancenumberCurrent balance in the wallet
currencystringCurrency used for the wallet (e.g., BRL)
datestringDate of the latest wallet status

ℹ️ Notes

  • All three parameters (wallet_uuid, email, and customer_id) must be included in the query for the request to succeed.
  • This endpoint is useful for retrieving wallet balances and confirming wallet ownership.