wallet18 ops

API de Wallet

Customer and driver wallets, balances, holds, and ledger transactions.

Consultas

CONSULTA

accountLedgerTransactions

#

Argumentos

  • input!
Devuelve!
CONSULTA

accountTransactions

Obsoleta#

Get transactions for a specific account (admin only)

Motivo de la obsolescencia: Use accountLedgerTransactions; BET-205

Argumentos

  • input!
Devuelve!
CONSULTA

accountWallets

Obsoleta#

Get wallets for a specific account (admin only)

Motivo de la obsolescencia: Use accountWalletsPage; BET-205

Argumentos

  • input!
Devuelve!
CONSULTA

accountWalletsPage

#

Argumentos

  • input!
Devuelve!
CONSULTA

exportAccountTransactions

#

Export account transactions in CSV, JSON, or PDF format. # Authorization Requires TenantAdmin or PlatformAdmin role. # Arguments * input - Export parameters including account ID, date range, and format # Returns Export data with content type and suggested filename. For PDF format, the data is base64-encoded.

Argumentos

  • input!
Devuelve!
CONSULTA

exportPlatformTransactions

#

Export platform transactions in CSV, JSON, or PDF format. # Authorization Requires TenantAdmin or PlatformAdmin role. # Arguments * input - Export parameters including optional wallet ID, date range, and format # Returns Export data with content type and suggested filename. For PDF format, the data is base64-encoded.

Argumentos

  • input!
Devuelve!
CONSULTA

myLedgerTransactions

#

Argumentos

  • input
Devuelve!
CONSULTA

myTransactions

Obsoleta#

Motivo de la obsolescencia: Use myLedgerTransactions; BET-205

Argumentos

  • input
Devuelve!
CONSULTA

myWallet

#

Argumentos

  • input
Devuelve!
CONSULTA

myWallets

Obsoleta#

Motivo de la obsolescencia: Use myWalletsPage(pagination); BET-205

Argumentos

  • input
Devuelve!
CONSULTA

myWalletsPage

#

Argumentos

  • pagination
Devuelve!
CONSULTA

orderTransactionsByRole

#

Fetch all wallet transactions for an order, grouped by participant role. This query returns the same data as orderTransactions but organizes transactions by role (customer, driver, vendor, provider, partner, platform) for easier display in admin interfaces. # Authorization Requires TenantAdmin or PlatformAdmin role. # Arguments * order_id - The order ID to fetch transactions for # Returns Transactions grouped by participant role, with totals per role.

Argumentos

  • orderId!
Devuelve!
CONSULTA

partnershipWallets

#

Get wallets for a specific partnership. Returns all wallets (across currencies) belonging to the partnership. Requires either partnership admin access or tenant/platform admin role.

Argumentos

  • input!
Devuelve!
CONSULTA

platformLedgerTransactions

#

Argumentos

  • input!

    Por defecto

    {
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      },
      "filters": null
    }
Devuelve!
CONSULTA

platformTransactions

Obsoleta#

List platform wallet transactions (admin only). Returns transactions that affect platform wallets with filtering and pagination.

Motivo de la obsolescencia: Use platformLedgerTransactions; BET-205

Argumentos

  • input!

    Por defecto

    {
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      },
      "filters": null
    }
Devuelve!
CONSULTA

platformWallets

Obsoleta#

List platform wallets (admin only).

Motivo de la obsolescencia: Use platformWalletsPage; BET-205

Argumentos

  • input!

    Por defecto

    {
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      }
    }
Devuelve!
CONSULTA

platformWalletsPage

#

Argumentos

  • input!

    Por defecto

    {
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      }
    }
Devuelve!

Mutaciones

MUTACIÓN

adjustWallet

#

Manually adjust a wallet balance (admin only). Used for corrections, gifts, manual payments, manual payouts, etc. Only TenantAdmin and PlatformAdmin roles can call this mutation. The adjustment creates a ledger transaction with the appropriate purpose and updates the wallet balance atomically.

Argumentos

  • input!
Devuelve!