wallet18 عملية

Wallet API

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

Queries

QUERY

accountLedgerTransactions

#

الوسائط

  • input!
يُرجع!
QUERY

accountTransactions

مهجور#

Get transactions for a specific account (admin only)

سبب الإهمال: Use accountLedgerTransactions; BET-205

الوسائط

  • input!
يُرجع!
QUERY

accountWallets

مهجور#

Get wallets for a specific account (admin only)

سبب الإهمال: Use accountWalletsPage; BET-205

الوسائط

  • input!
يُرجع!
QUERY

accountWalletsPage

#

الوسائط

  • input!
يُرجع!
QUERY

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.

الوسائط

  • input!
يُرجع!
QUERY

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.

الوسائط

  • input!
يُرجع!
QUERY

myLedgerTransactions

#

الوسائط

  • input
يُرجع!
QUERY

myTransactions

مهجور#

سبب الإهمال: Use myLedgerTransactions; BET-205

الوسائط

  • input
يُرجع!
QUERY

myWallet

#

الوسائط

  • input
يُرجع!
QUERY

myWallets

مهجور#

سبب الإهمال: Use myWalletsPage(pagination); BET-205

الوسائط

  • input
يُرجع!
QUERY

myWalletsPage

#

الوسائط

  • pagination
يُرجع!
QUERY

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.

الوسائط

  • orderId!
يُرجع!
QUERY

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.

الوسائط

  • input!
يُرجع!
QUERY

platformLedgerTransactions

#

الوسائط

  • input!

    افتراضي

    {
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      },
      "filters": null
    }
يُرجع!
QUERY

platformTransactions

مهجور#

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

سبب الإهمال: Use platformLedgerTransactions; BET-205

الوسائط

  • input!

    افتراضي

    {
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      },
      "filters": null
    }
يُرجع!
QUERY

platformWallets

مهجور#

List platform wallets (admin only).

سبب الإهمال: Use platformWalletsPage; BET-205

الوسائط

  • input!

    افتراضي

    {
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      }
    }
يُرجع!
QUERY

platformWalletsPage

#

الوسائط

  • input!

    افتراضي

    {
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      }
    }
يُرجع!

Mutations

MUTATION

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.

الوسائط

  • input!
يُرجع!