diff --git a/documentacion/documentacion-api/api-graphql.mdx b/documentacion/documentacion-api/api-graphql.mdx index aca36e7..16454cb 100644 --- a/documentacion/documentacion-api/api-graphql.mdx +++ b/documentacion/documentacion-api/api-graphql.mdx @@ -557,6 +557,58 @@ mutation UpdateAccount($input: InputUpdateAccountDto!) { "updateDocumentType" } } +``` +#### Get Accounts Movements Balance +Devuelve los movimientos registrados y el balance del usuario. + +```graphql +query MovementsBalance($input: AccountMovementsBalanceInput!) { + movementsBalance(input: $input) { + allMovements { + orderId + transactionStatus + amount + currencySymbol + cryptoSymbol + exchangeRate + localCurrencyConversion + dates { + orderedDate + payedDate + transactionDate + deliveredDate + _id + updatedAt + createdAt + refundDeliveredDate + refundInProgressDate + refundStartedDate + } + paymentMethod + invoiceLink + txhash + } + balances { + _id + accountId + currencySymbol + countryCode + totalBalance + description + retries + createdAt + updatedAt + } + } +} +"variables": +{ + "input": { + "accountID": "668561002363adab95bdff65", + "email": "user@email.com" //Opcional + } +} + ``` diff --git a/english/documentation/api-documentation/graphql-api.mdx b/english/documentation/api-documentation/graphql-api.mdx index adf7d6b..f3f2126 100644 --- a/english/documentation/api-documentation/graphql-api.mdx +++ b/english/documentation/api-documentation/graphql-api.mdx @@ -570,6 +570,58 @@ mutation UpdateAccount($input: InputUpdateAccountDto!) { } } ``` +#### Get Accounts Movements Balance +Returns the registered movements and balance of the user. + +```graphql +query MovementsBalance($input: AccountMovementsBalanceInput!) { + movementsBalance(input: $input) { + allMovements { + orderId + transactionStatus + amount + currencySymbol + cryptoSymbol + exchangeRate + localCurrencyConversion + dates { + orderedDate + payedDate + transactionDate + deliveredDate + _id + updatedAt + createdAt + refundDeliveredDate + refundInProgressDate + refundStartedDate + } + paymentMethod + invoiceLink + txhash + } + balances { + _id + accountId + currencySymbol + countryCode + totalBalance + description + retries + createdAt + updatedAt + } + } +} +"variables": +{ + "input": { + "accountID": "668561002363adab95bdff65", + "email": "user@email.com" //Optional + } +} +``` +