GraphQL endpoint to update an existing transaction
Last updated 8 months ago
GraphQL Mutation:
mutation UpdateCustomUserTransaction( $transactionId: String!, $transactionType: CustomCRMTransactionTypeEnum!, $amount: Float!, $amountType: CustomCRMTransactionAmountTypeEnum, $currencyValue: Float!, $currencyType: CustomCRMTransactionCurrencyTypeEnum!, $timestamp: String!, $details: String ) { updateCustomUserTransaction( transactionId: $transactionId, transactionType: $transactionType, amount: $amount, amountType: $amountType, currencyValue: $currencyValue, currencyType: $currencyType, timestamp: $timestamp, details: $details ) { status transaction{ id transactionType amount amountType currencyValue currencyType timestamp details } } }
Variables:
{ "transactionId": "tx_id_here", "transactionType": "BUY", "amount": 10.0, "amountType": "ETH", "currencyValue": 10000, "currencyType": "USD", "timestamp": "01-01-2024" }