Walletguide
DevelopersAPIReferencecryptoTransactions

Create crypto transaction

Create a crypto transaction with the Walletguide REST API. Parameters, response fields, and a playground you can run.

POST
/wallets/{walletId}/cryptoTransactions

Authorization

bearerAuth
Authorization<token>

A Walletguide API key (wg_…) or an OAuth bearer token. Paste the value only. Create a key under Wallet settings → API keys.

In: header

Path Parameters

walletId*string

Row uuid

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/wallets/497f6eca-6276-4993-bfeb-53cbbbba6f08/cryptoTransactions" \  -H "Content-Type: application/json" \  -d '{    "assetId": "9179b887-04ef-4ce5-ab3a-b5bbd39ea3c8",    "date": "string",    "type": "initialBalance",    "quantity": 0,    "priceValue": "string",    "priceCurrency": "string",    "feesValue": "string",    "feesCurrency": "string",    "taxValue": "string",    "taxCurrency": "string",    "categoryId": "string",    "cryptoCurrency": "BTC"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "walletId": "0ecad4a2-3549-43fb-807e-9ff033247480",  "firestoreId": "string",  "assetId": "9179b887-04ef-4ce5-ab3a-b5bbd39ea3c8",  "date": "string",  "type": "initialBalance",  "cryptoCurrency": "BTC",  "quantity": -140737488355328,  "priceValue": "string",  "priceCurrency": "EUR",  "feesValue": "string",  "feesCurrency": "EUR",  "taxValue": "string",  "taxCurrency": "EUR",  "categoryId": "337f5e5d-288b-40d5-be14-901cc3acacc0",  "notes": "string",  "transferCounterType": "transaction",  "transferCounterId": "bfd53a44-3603-4023-978c-daf5f740c5fd",  "createdTime": "2019-08-24T14:15:22Z",  "createdUserId": "string",  "lastUpdatedTime": "2019-08-24T14:15:22Z",  "lastUpdatedUserId": "string"}