The Wallets API enables you to determine the amount of a given currency belonging to an account. Each account may have multiple wallets, but a wallet belongs to only one account. For example, Alice may have a Wallet in USD, a Wallet in LindenDollars, and a Wallet in SandDollars.
API References
/- Get wallet balances
webhooks
Get wallet by ID
Get wallets by account
Create a custom wallet type
Get wallet balances
Wallets (1.0.0)
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://thunes-tilia-docs.redocly.app/_mock/openapi/prod/wallets/openapi/
Staging
https://wallets.staging.tilia-inc.com/
Production
https://wallets.tilia-inc.com/
- Mock serverhttps://thunes-tilia-docs.redocly.app/_mock/openapi/prod/wallets/openapi/balances/{account_id}
- Staginghttps://wallets.staging.tilia-inc.com/balances/{account_id}
- Productionhttps://wallets.tilia-inc.com/balances/{account_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://thunes-tilia-docs.redocly.app/_mock/openapi/prod/wallets/openapi/balances/acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b?currency=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "payload": { "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b", "balances": { … } }, "codes": null, "message": null, "status": "Success" }
- Mock serverhttps://thunes-tilia-docs.redocly.app/_mock/openapi/prod/wallets/openapi/v2/wallet/{wallet_id}
- Staginghttps://wallets.staging.tilia-inc.com/v2/wallet/{wallet_id}
- Productionhttps://wallets.tilia-inc.com/v2/wallet/{wallet_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://thunes-tilia-docs.redocly.app/_mock/openapi/prod/wallets/openapi/v2/wallet/wal_2V2cKKqYoaj018K0EXBauwcurbd \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "status": "Success", "message": null, "codes": null, "payload": { "wallet_id": "wal_2V2cKKqYoaj018K0EXBauwcurbd", "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b", "description": "USD Wallet", "currency": "USD", "current_balance": 100, "active": 1, "tags": [ … ] } }
- Mock serverhttps://thunes-tilia-docs.redocly.app/_mock/openapi/prod/wallets/openapi/v2/account/{account_id}/wallets
- Staginghttps://wallets.staging.tilia-inc.com/v2/account/{account_id}/wallets
- Productionhttps://wallets.tilia-inc.com/v2/account/{account_id}/wallets
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://thunes-tilia-docs.redocly.app/_mock/openapi/prod/wallets/openapi/v2/account/acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b/wallets \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "status": "Success", "message": null, "codes": null, "payload": { "count": 1, "wallets": [ … ] } }
Request
Enables you to create a custom Tilia Wallet to use for nonstandard transaction flows. Reach out to Tilia to define the new wallet type.
NOTE: A wallet created from this endpoint will not have an associated payment method. Hence, the wallet would not be usable for purchase in the Checkout Widget. To enable purchase using this custom wallet, create an associated wallet payment method (as described in the Create a Custom Wallet payment method document in the Payments API reference section).
Security
tilia_auth
Request for creating a custom wallet for an account
The name of the wallet type. This value must match the value configured by Tilia in your account's settings.
Example: "publisher_hosted"
- Mock serverhttps://thunes-tilia-docs.redocly.app/_mock/openapi/prod/wallets/openapi/v2/wallet/custom
- Staginghttps://wallets.staging.tilia-inc.com/v2/wallet/custom
- Productionhttps://wallets.tilia-inc.com/v2/wallet/custom
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://thunes-tilia-docs.redocly.app/_mock/openapi/prod/wallets/openapi/v2/wallet/custom \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
"wallet_type": "publisher_hosted",
"tags": [
"coin:TOK"
]
}'Response
application/json
{ "status": "Success", "message": null, "codes": null, "payload": { "wallet_id": "wal_2V2cKKqYoaj018K0EXBauwcurbd", "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b", "description": "USD Wallet", "currency": "USD", "current_balance": 100, "active": 1, "tags": [ … ] } }