Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions documentacion/documentacion-api/api-graphql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,58 @@ mutation UpdateAccount($input: InputUpdateAccountDto!) {
"updateDocumentType"
}
}
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creo que se debería aclarar que son los movimiento en fiat, no aplica para movimientos de criptos

#### 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
}
}

```

</Accordion>
Expand Down
52 changes: 52 additions & 0 deletions english/documentation/api-documentation/graphql-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
```


</Accordion>

Expand Down